I think that’s a loaded quesiton. The car that lasts longest is the one that is taken the best care of. The only way to make a car last is to take good care of it. No care will last if it isn’t properly maintained.
You should always have jumper cables in your car. This way you can get a jump in case your battery dies out. You’ll never have to worry again how you’re going to get home if it happens.