I hope. 2 people of the same sex masturbating each other does not equal marriage.
Last I checked consummating a marriage required intercourse. Impossible for two women and I don’t think what two men do would count either.