What dollar-cost averaging is trying to do
Dollar-cost averaging spreads purchases over time so that more shares are bought when prices are lower and fewer shares are bought when prices are higher. The trade-off is straightforward: it can smooth the entry price, but it may also leave part of the capital uninvested for longer than an upfront lump-sum purchase would.
That trade-off is why a comparison view matters. In a smoothly rising market, lump sum often wins because more money is exposed to growth earlier. In a choppier or early-drawdown market, spreading the purchases can sometimes help the cost basis and narrow or reverse the performance gap.