Now if we're talking about 'buying an apartment' that'd be a better comparison, as in that case it would be better than renting if you plan to live in a single place for a long time.
The amount of money people blow every month on mortgage interest, maintenance, insurance, and taxes on a big house is easily more than many peoples' rents, but yet people are convinced that buying (before they actually need a house) will lead them to a better financial future.