But if you look at it from the other direction, if your crank was extremely short, say only 1cm long, it would be incredibly stiff to push and logically lengthening the stroke would increase your mechanical advantage and make it possible/easier to turn the cranks.
Combining these two approaches we can conclude that the ideal crank length will be ... somewhere between extremely long and extremely short.
I read somewhere that if you aren’t able to pedal at a high cadence when climbing. You will need lower gears if you go with shorter cranks as you will no longer have the torque you get with long ones.
When on the turbo I can pedal at 90 to 105 revs depending on the gear. But out on the road when I hit the climbs my revs drop dramatically. I can usually out climb most of my peers despite some of them being a fair bit younger.