it's like both sides are just choosing a position and then just adopting the talking points.
i watched a video earlier about this subject and dude made an interesting point. when you by with a mortgage you are renting money from the bank (interest).
buying has it's own type of risk if you take on a mortgage. If you are married and for whatever reason you separate, you might need to sell the house but during the time you sell the house, you might still need to rent another place plus pay the mortgage. the selling process could take months and has additional costs. and what if you separate in a time where it's a buyer's market? you might end up losing money on the sale after all costs are considered. saying houses always appreciate in value on average doesn't guarantee that the appreciation will be what it should be for you to break even at the time you sell.
samething if you lose your job.
Investments are the same. they depend on timing as well. say you're renting and have investments, say you need money, you could just sell a part of your investments. you can't sell 30% of your house though. You could borrow against it depending on how much equity you have and the regulations of where you are. but at the same time, i'd rather sell investments than borrow against my home.
The advantage of owning IMO are that if you plan on staying longterm and everything works out relatively well, you will come out ahead. you also have more space, more intimacy, more freedom to do whatever you want with your home, you don't have to wait on your landlord for stuff that needs fixing and it forces you to save in a sense by buying equity.
The advantages of renting are flexibility, less responsibility as far as repairs (plumbers, electricians, water heater, roof, etc, etc) but also as far as lawn mowing, snow, etc. and assuming you are investing the difference, your money is more liquid (although a lot of people don't have the discipline to invest the difference.
there is no clear cut answer as to which is better. Like with most things, it depends on your circumstances and personality.
EDIT: i lean more towards the renting side BUT this is just based on my personality. Then again, if it was truly a sweet deal, i would probably buy.