bore vs stroke

An example is the 440 six pack vs the 426 Hemi... Both engines were rated at 495 ft*lbs of torque and has the same stroke... If bore had more influence on torque why wasn't the 440 putting out more torque???
. The same heads between two engines.....the shorter stroke will act as if it has bigger heads.