Buy cars that are easier and cheaper to repair and will have available parts for the foreseeable future.
Part of the reason cars are so expensive to repair is because of government mileage, emissions, and safety regulations.