If you bought a used car you'll save a lot of money , But If you bought a new one you'll lose at least 30% of the original price after 2 or 3 years of buying it. You must know that after you leave the dealership your car will worth 1000$ or 2000$ less than the actual price.
It's True that a new car will not need a lot of repair in the first years & any problem will be covered by the manufacturer. You must know that New cars aren't always perfect it may come with problems such as manufacturing defects or poor design ,but these problems may be covered in warranty coverage period If it's new car not old one.
It still a gamble to buy a used car you don't know if the car is accident-free, has real mileage, and was properly maintained. problems like a worn out automatic transmission, or engine problems may not have been obvious when you test-drove the car. buying a used car still much better than buying a new one & there are many things you can do to reduce the dangerous of buying a used car.