I rarely find a bad car, and when I do, I find that usually the reason it is bad is because of user error/neglect, not due to factory defect. This is mostly true for nearly any vehicle, foreign or domestic. I normally like any car that is 1996 or newer. Most of the systems on such cars are "plugs and play". Just a wiring harness to unplug, remove component, replace, re-plug, good to go.
Any car can have problems, even a 2010 Corolla, but major issues can usually be attributed to poor maintenance\poor repair. If you're buying such a car, (I'll assume it's used since it's possibly 2010) have it checked by a decent mechanic that you can trust. After that just properly maintain.
What's nice about such cars is that in both the Corolla and Camry now use steel timing chains as opposed to rubber timing belts. There's nothing wrong with rubber belts, but if one breaks, either replace a bunch of bent valves or replace the engine. Both are expensive options, especially since it is avoidable by replacing the rubber timing belt every now and then. But Japanese took a page from domestic engineering and are now mostly steel chains. You won't have to worry about that.
Just find the maintenance schedule for your vehicle and follow it. Should you purchase such a car in decent shape, I believe that you will be the proud owner of a vehicle that will provide many years and miles of service. Best of luck!