I’m not saying that homeownership is a slam dunk. If you go back and reread, what I’m pushing back on is that the mere act of purchasing and holding a house counts as doing something worthy of a return.
My point is that homeownership, in the US especially, is so heavily favored as an investment vehicle that you perhaps should not act as if you inherently deserve the gains for having “done something”.
As you say: it’s a liability, not an investment (although, I would say it’s entirely possible to be both, and trillions of dollars of smart money agrees)). But it is a liability that has limited downside because of government policy. Because of this, it actually makes a pretty good investment as well. We would do well to recognize where those gains come from (artificially low mortgage rates, and often artificially high scarcity).