I bought my house for a little under 400k a decade ago. I paid a rate that was roughly the same as inflation (!). It's worth twice that now and it's all but paid off. I've put maybe 50k into repairs and upgrades. Maybe 500k total for paying off the loan, taxes, interest, and ownership costs. Rent for any apartment near me over the last ten years would have been around 260k. So buying in 2013 has netted me an additional $550k of net worth. Now it nets me about $2500 per month in imputed rent. This is ballpark, obviously, and the market is entirely different from what it looked like ten years ago, but there's a reason that homeownership has been the traditional driver of net worth of the middle class.
Assuming you live in the US, the federal government has always subsidized homeownership and land ownership. From the Homestead Act to VA loans to federally backed fixed rate 30 year mortgages to interest tax deductions and capital gains exemptions: homeownership is massively underwritten by the feds. Even today, with historically high rates, you can get a 7% mortgage when inflation is around 4%, which is pretty generous when you consider leveraged appreciation.
That's why a lot of people across the board like the idea of homeownership.
Probably not the right call for OP - you're new to your career, you have cheap housing, low assets and low cash flow compared to future you (hopefully). Just don't swallow the sophomoric blog articles that oversimplify the issue (see: millennial-revolution). Don't swallow the anecdotes from the septuagenarians who were making decisions in utterly different economic circumstances, not to mention geographic housing markets than yourself (see: JL Collins). Real estate is a federally subsidized, leveraged investment that is extremely powerful. It can make you richer or it can make you broke.
Of course, it can never make you financially independent, unless you're willing to house hack. YMMV.