Oh I don't disagree, I hate real estate as an investment, it's a terrible asset only made "viable" by tax benefits, rent-replacement and excessive amounts of risk via leverage.
It's my shortcut for describing the idea that you'd spend $X a month on either interest lost to a bank or rent lost to a landlord, and therefore you can mostly consider that a constant expense when considering rent versus mortgage.