Though the S&P 500 is beginning to finally decline now and interest rates are rising (even bitcoin is not rising all that fast now), so this advice may be getting outdated.
There are more asset classes than a primary residence, stocks, and bitcoin. As the parent comment stated, a REIT is typically a less risky investment than a single house, even if you want to invest in real estate.