I dunno. I bought my house in 2018 for 400k and now it's being appraised at 550k and I'm planning to sell and buy a house elsewhere with my girlfriend.
Pretty lucky for sure, but even if the increase wasn't this dramatic it would have still been better than renting...
Btw this a fallacy/bad accounting that many home owners fall into.
Most say $550K sale price minus $400K purchase price == $150K profit.
But you need to remove: Taxes, maintenance, cost of your time (if you value that at all), realtors fees, HOA, bank fees/insurance, home insurance, depreciation on purchases you only had because of home ownership (tools, lawn mower etc).
Once you remove those it's hard for home ownership to make financial sense relative to investing in the stock market + renting.
However, and this is discussed in another thread, homeownership is a lifestyle choice, and we should be ok with making financially suboptimal choices for the sake of a quality life. We just need to keep clear it's an expense for a purpose, not an investment for financial gain. If we overspend on house liability it's no different than overspending on cars or food or travel.
You're double counting the down payment and equity payment. It doesn't count against the profit of the simple $150k number unless you lower the mortgage balance which would increase the $150k to $214k.
Another way to look at it is that even with your numbers, a 40k investment was turned into 1.25k monthly dividend vs. -2k month or so in rent (rough number based on house price).
It makes a lot of financial sense when it's leveraged. That fictional 150k profit was on 5-20% down of the purchase price, plus the payments made until sale. If you live in it for 2 years you avoid capital gains taxes, and if you go the other route of renting it out you deduct expenses.
Pretty lucky for sure, but even if the increase wasn't this dramatic it would have still been better than renting...