The trick to buying a car, and I purchased my first car in 1968, is to get the best car in its class. If the price is too high, then try a less expensive class. For example, if you are interested in an SUV, a Honda CRV or Toyota Rav-4 are the cars to look at. If you can't afford one of them, the maybe look at the best in class for a five door car.
Read the car magazines and see what the comparisons tests look like, and also check Edmund's online, which provides comparisons across vehicles in their class.
For the best price, think about a low mileage used car, meaning a car that is a year or two old but with low mileage, still under warranty. New cars are lots of fun but it costs some extra bucks to get one that is new.
Cars these days generally are better than they used to be, meaning they are more reliable, but generally it is a good idea to avoid a new model of a car the first year it is produced. The second year usually will have fewer "bugs."
You might also check on the quality of the dealership. Some have terrific service departments and others are not nearly as good. You can check service departments out on line. If you are in Ames and you don't care about the service department, En-Tire has worked on our cars for years and the work is top notch for a fair price. En-Tire only does what is necessary and almost always give me a choice in dealing with a repair job or replacement of tires, batteries and so on.
Good luck and happy shopping.