Never buy new.
Dave Ramsey makes a good point that until you have $1,000,000 in net worth, don’t buy new.
That's good advice if you work from home, or have a typical daily commute to and from the same office. If you have a car problem you can get a loaner or rental or carpool for a few days while the vehicle is in the shop.
Some peoples' livelihoods depend on extensive, regular travel to different locations every day, and reliable transportation is a non-negotiable. Having a new or very low mileage certified pre-owned is a must. Breaking down out of town on business means not only some immediate expensive repairs, but probably some added hotel expenses while losing business until the car is repaired.