https://www.nerdwallet.com/mortgages/rent-vs-buy-calculator
plug in all the numbers given in TFA with this reasonable modification:
Increase in housing prices (rent and buy) exactly match whatever your inflation number is.
return on investment is 4% over inflation, and you pay 15% capital gains on it.
Lo and behold, the break even point is 20 years, after which buying is actually better.
tweak a couple of variables ... move your marginal tax rate up to what someone making 175,000/year makes in NY or CA and the break even point gets earlier.
Etc.
Real Estate doesn't have to beat inflation to be a good investment. It only has to beat inflation when the price it is being sold at assumes it will beat inflation in the future and has baked that in.
The article is drawing way too much conclusion from a small amount of observation.