MasterCAM is a CAM software, used for generating G-code. Mach3 is a CNC controller that handles the physical machine functions. That's like comparing Window8 to Microsoft Office.