Personally I would not purchase the civic due to the fact that it will be the most expensive to ensure. Also I may be additionally bias but after having 2 Acura RDX models (215 and 2107) I can tell you that Honda/Acura infotainment systems are terrible, slow and in bad need of a complete revamp.
I have had several Mazdas over the years including a 323, Mazda5, 2 Mazda6 V6s and they all proved to be good cars that were fun to drive. I think the Mazda3 would likely be my pick of the 3 but that said I would strongly recommend taking a look at the Elantra GT. Their sport version n line hatchback is a nice car for the money.
https://www.hyundaicanada.com/en/sho...ntra-gt-n-line
My brother in law has had Hyundai cars since 03 and they have all been great, long lasting cars and good on fuel.
Hope that helps.