If you’re gonna keep the car for a long time, go new, if your gonna move on in a couple years, go used to save as much $$ as possible. 5k is not much coin in the long run. 5+ years from now, if you still have the car, you won’t be thinking about that five grand you coulda saved.
This is of course assuming you can comfortably afford either car in the first place and aren’t making an unwise financial decision.