If you want extreme cost effectiveness, aim for toyota/honda popular models, they have the best resale price, stands very strong even after 5+ years. Also the maintenance cost would be near minimum in the market.
e.g.
https://www.clutch.ca/cars/toyota-highlander
100k km vs 30k km only 7k cad price difference.
20000km a year it means you drive it for 3.5 years at a price of 7k cad + maintenance.
Pick sth around 30k km, sell it before 100k