That's only true if after selling you kept the cash under the mattress. If you sold the SPY S&P 500 ETF in January 1996 and invested the proceeds in the Treasury-heavy Vanguard Total Bond Market Index fund (there were no bond ETFs back then) you would have seen better entry points waiting for you in the future:
10% discount in Q4 2002 and Q1 2003.
30% discount in Q1 2009
Ppl have been saying that for years. It's possible for future values to increase. That was what happened in 2016-2018. In 2015 profits had been to flat line, and then they inexplicably began to rise in 2017, breathing new life into the market. I would rather invest in a slightly overvalued market than miss out, especially giving how terrible people are at timing the market. Had you sold in 1996, when the market was already getting overvalued, you would have never ever been able to buy back at a cheaper price.