It is definitely not always better to buy. It depends upon the individual and, as I stated earlier, the market.
For example, in many metropolitan areas, the mortgage on luxury condos (my personal preference) far exceeds the rent on those same units. Unless you feel certain sale prices are going through the roof in the near future, renting one would make more economic sense.
When I lived in Baltimore, I bought my last house in 2000 and sold it for twice what I paid just a few years later. I then rented a stunning condo overlooking the harbor for about half what my landlord was paying each month. He bought it for $425,000. When I moved out four years later, it was worth less than $200,000.
For five years leading up to the crash, I advised against anyone buying. When I suggested prices could fall by as much as 40%, people just laughed. All the experts said prices would go up forever, so my tiny voice was lost in the crowd.