2014 and newer Mazdas are good but the infotainment may need replacing or repair on 2014-2018s due to the screen delamination usually from being parked outside. Prior to that, you need to be specific about what model. The engines and transmissions have always been bulletproof so long as they are kept wet, except for the Mazdaspeed and CX-7 turbo needing an oil restrictor.
Suzuki are cheap cars that need cheap fixes and will keep running as long as you keep fluids in them. I'd never buy one unless I couldn't buy a Honda, Toyota, Mazda, or American V8.