Does this take into account the risk of a housing market crash? For me, the biggest reason for renting rather than buying is to avoid putting all my bags in one basket; I wouldn't buy $500k worth of shares of one company, so spending $500k on a single house seems similarly risky.
No different than owning $500K worth of share in a public company.
Nothing wrong with buying a house, but people should be careful not to have their net worth all tied up in a single asset (house or not). The one rule I've heard is 90 minus your age. When you're young is OK to have a high percentage of your net worth in a house, but not when you're getting close to retirement. Too risky.