Involved in the methylaspartate cycle. Catalyzes the reversible cleavage of beta-methylmalyl-CoA to propionyl-CoA and glyoxylate, as well as the reversible cleavage of (S)-malyl-CoA to acetyl-CoA and glyoxylate. In addition, it has a small malyl-CoA thioesterase activity. It can also catalyzes the cleavage of (S)-citramalyl-CoA to acetyl-CoA and pyruvate. (S)-malyl-CoA = acetyl-CoA + glyoxylate (2R,3S)-beta-methylmalyl-CoA = glyoxylate + propanoyl-CoA Divalent cations such as magnesium or manganese. Belongs to the HpcH/HpaI aldolase family.