It depends. When you are in CarPlay, pressing the Nav button takes you to Apple Maps (would love it if you could pick which map app it takes you to by default but whatever).
However, you can also switch out of carplay into the default Mazda infotainment system by either selecting the Mazda app...