https://www.macrotrends.net/3072/us-house-price-index (~3x in the past 30 years, about 3.7% return per year)
https://www.macrotrends.net/2324/sp-500-historical-chart-dat... (~15x in the past 30 years, about 9.3% return per year)
This is in line with conventional wisdom on return rates for these asset classes: https://awealthofcommonsense.com/2024/01/what-is-the-histori...
Unless you are comparing retrospectively hot-shot real estate with retrospectively mediocre stocks, then stock market investment has always won out substantially over real estate investment in terms of raw return rate. This makes sense, given that if the opposite were really true, then it would make no sense to invest in productive businesses as opposed to holding companies that just hoarded empty houses indefinitely.