There was an article on here many years ago (some quick searching has failed to reveal it, alas) that 'demonstrated' the most sensible thing to do was buy a 2 year old car and sell it 5 years later.
This gave you the benefit of some of the new car warranty, and meant you passed it along before the more expensive fixes started to show up. Broadly, if you want to be sensible with your finances, don't buy a new car! You're essentially tearing up a whole lot of money the moment you drive it off the lot.
Late last year I did the numbers for myself (so again, sorry - no link!). I could run it through my company, so had the tax advantages of that when it comes to leasing. What I found was that the benefits only became clear when I compared leasing a new car with purchasing a new car. (iirc, Leasing with tax benefits was just a better option than purchasing with cash.)
And since I knew a new car wasn't a good idea, leasing was shelved and I bought a second hand (pre loved?) vehicle. Those tax benefits (which would differ in different jurisdictions) may be one reason why it's hard to find the site you're looking for.
On the related topic of financing a car purchase, which I did with my first car many years ago, an obvious lesson I learned the hard way was combining weekly repayments with the length of the loan. All I had in my head at the time was "$100 per week" - of course, the dealer immediately applied this to a 5 year loan which almost lost me finance on my first home some years later. If you can't pay cash today, think $x/week over 2-3 years max to ensure it doesn't become a depreciating black hole.