Is buying a new car really the financial disaster people say?

I bought a Corolla brand new 2 years ago and everyone said that I was blowing my money away.

Is that actually true? I mean, sure, if I sell my car after a few years, yes.

But if I maintain it (and the biggest pro with buying new is you know the exact condition) and keep it for 10-12 years is it actually that bad?