Identical phosphatase mechanisms achieved through distinct modes of binding phosphoprotein substrate