* Down payment: not a real cost, that money is yours in the form of equity
The opportunity cost of the downpayment is the issue. The equity you gain from downpayment is nowhere close to the opportunity cost of investing it in the stock market.
Owning MIGHT have been an OK investment for most Americans 20 years ago. that is absolutely not the case today anymore.
Ah yes, so you timed buying your house perfectly due to the one time increase during covid ("7 years ago"), and you think this generalizes to anyone buying today.
This is the same story as me anecdotally saying that I bought Nvidia 6 years ago therefore Stocks are always absolutely better.
So let me ask you? Based on your logic there is no price at which buying makes no more sense? What is the cutoff for you? What if you could rent a 4M$ house for 4k$/Month? Is it still a great deal? What if that house only goes up 2% a year?
Those are the only things that matter. The hard numbers! And right now they do absolutely not make sense.