True, but every month (if you're doing it right) you're building up equity as opposed to just giving your money away to the landlord. Paying off a mortgage does not have to take 30 years, not even close if you're financially intelligent.
Ultimately, people have to do what's best for them though, in many instances an apartment is the better option. With that being said, I rather own a home, and I won't be a senior citizen when the bank says it's mine.
