X = Y is true if and only if X and Y are unifiable. True if the unification succeeds. For unification with occurs check see unify_with_occurs_check/2.