400 hp 5.2l vs 5.9l Magnums

A bigger engine may make more per powerstroke "Torque" but smaller engine will have more powerstrokes to add up "rpm*. Which will balance out if making same hp.
This is inaccurate. Think about it.
Also what are your parameters to define bigger engine / smaller engine?