If you’re considering the Elantra, I’d also look at Honda Civics and Toyota Corollas. Prius is a great car (my sister has a couple and one is ten years old) but it commands a premium price. Go simple and basic for now.
You don’t have the extra money for a new battery. Have you looked at the rest of the car and the cost of maintenance?