I did some back of the envelope calculations comparing housing in my area vs market. Taking the long view, accounting for property taxes and mortgage interest payments, housing did not beat the market.
Plus stocks are almost immediately liquid and have almost no transaction and no maintenance costs and no annual property tax.