I don’t doubt it’s a better long term approach, but you can just look at the past couple years as an example of different approaches paying off.
In 2019 the Dow was never lower than it was in Jan/Feb, so lump sum up front would’ve made you more.
In 2020, you do the same and you’re mumped.