A muzzle brake is designed to reduce recoil by venting gas out the sides whereas a compensator is designed to reduce muzzle climb during rapid fire. They do the same job but in different directions.