Lump Sum VS Dollar Cost - compounding

I didn’t hear this mentioned in the course, but as far as lump sum vs. dollar cost averaging, wouldn’t lump sum be better as well because of compounding and a larger amount from the start to compound? I have a good amount of money from a home sale I would like to invest, but I’ve been tentative about investing a lump sum given the market is so high, though it did occur to me that compounding would make it a benefit to get it all in early, no matter what the market does. Is that right?
Also, on the lump sum calculator, is “months to dollar cost average” the months until retirement?