[GHC] #12823: Inconsistency in acceptance of equality constraints in different forms