There are well-known possible positives to owning but the negatives are vast too, especially compared to investing in an ultra-low-fee index fund in lieu of a house.
Owning a house also made more sense in an era in which a single worker expected to work for a single company at a single site for decades. In an era when two workers may work for a myriad of companies for ranges of six months to ten years, it makes a lot less sense.