Real estate also has a long-term demographic problem: fewer people means lower demand. We're below replacement rate[1], so as a general class I'd expect real estate to underperform.
My folks sold a house in a upper-middle class neighborhood in one of the best school districts in their state. They owned for 22 years and didn't make inflation on the sale.
[1] https://en.wikipedia.org/wiki/Demographics_of_the_United_Sta...