It's usually a trade off between paying someone for rent, or paying someone else interest (and others for tax, maintenance, etc.)
You can't really take the investment aspect or any of these others out of the analysis if you want to understand what's best for you. Particularly in countries with policies to encourage/subsidize home ownership the answer is often, "buy a place", but not always.
Agree a investment property is a whole other can of worms, but not really relevant on the "should I buy or rent, personally" decision. For that one, you need to compare to other investments, which is in many ways more straightforward.
You can't really take the investment aspect or any of these others out of the analysis if you want to understand what's best for you. Particularly in countries with policies to encourage/subsidize home ownership the answer is often, "buy a place", but not always.