All three are models with excellent engineering and good reliability records, but with ANY used car, the way that it was maintained by the previous owner is just as important–if not more important–than the make and model of car. In other words, a negligent owner can take an otherwise excellent car and turn it into one with poor reliability and poor durability by ignoring required maintenance. And–trust me–there are a LOT of people who skip required maintenance and then pass along the bad outcomes to the next owner of the car.
Ideally, you would be able to see copies of the maintenance records of these cars in order to see just how well they were maintained, but if that isn’t possible, it would be well worth a few pesos to have your own mechanic inspect a car that you plan to buy BEFORE you buy it. A good mechanic can spot potential trouble spots and prevent you from buying a car that would give you a lot of headaches and a lot of repair expenses.
All of that being said, if I was to choose among those models, I would choose the Camry, simply because I believe that its construction is a bit more robust than the construction of the smaller Corolla and Mazda 3. However, they are all good cars and ultimately your choice of which one to buy should probably come down to the question of which one your mechanic believes to be in the best mechanical condition.