I tend to buy subaru. They aren't as good as they used to be. But I think they still have a good safety rating and resell and trade in value. Repairs can be a little pricey though.
I've heard the Corolla is supposed to be alright. Looks like alot have voted for that one. If you can, I'd say buy the hybrid Corolla