I'm not sure what your point is. I claim that you get back more than 50% of your money more than 50% of the time. I believe the historical data nation wide agrees with that. When you rent, you get 0% of your money back. 0% is a worse return than x% where x > 0. 0% return is a lot worse than 50%. And there are plenty of people who get better than 100%, I'm not saying it's everyone, but it's a fact that it's common.
So which would you rather have? A 50k loss on your house after 10 or 20 years, or have spent 600k renting a place in San Francisco for 10 years and having 0 dollars back?
There are good reasons to rent, but the long term economic benefits are not one of them. There's just no comparison, and bringing up taxes and fees and repair costs and whether inflation matches, none of that makes a single bit of difference.