First of all, I fundamentally disagree on the notion that buying a home should be considered an investment (I would go as far as to argue that this attitude is part of the reason the real estate markets are so broken in many places of the world). I don't want to be rich and I don't need to be - I just want a place where my kids some day can grow up, where I can enjoy the sun in the garden and invite family and friends over to spend a nice evening. I do not care about the financial aspect of it beyond "can I afford this without overstretching and putting my family into financial danger".
From a purely financial perspective, I think you could say: the more protections you as a renter receive, the more renting makes sense.
Living in Germany, I do have quite a few protections as a renter. My landlord can't arbitrarily hike prices, etc. In my current city, it would be absolutely impossible to get a mortgage anywhere close to my current monthly rent (even with substantial equity)