I don't think he is saying that. As an individual it may be better to invest in the house. Depending on many individual factors. e.g. Capital gains, timeframe, etc.
What I think he is saying is that collectively it is better for society that more people invest in productive activities that generate new wealth.