Both are strong choices. A new car gives you the latest tech and a full factory warranty; a certified pre-owned car gives you most of that for less. Here is how to decide.
You want the newest features, plan to keep the car a long time, and want the longest warranty.
You want a nearly-new car with a strong warranty at a lower price, and you would rather let someone else take the first-year depreciation.