But you had to have saved up money in the first place in order to make a downpayment on the mortgage. If your rent is so expensive that you can’t save any money then you aren’t going to be able to get a mortgage anyway. And if you can save money for a downpayment then you have to compare the opportunity cost of investing those savings versus using them to buy a house.