Unifies term1 and term2 if possible, optionally enabling occurs-check.
Return
the result of applying the computed mgu to term1 (retaining term1's orientation), or null if term1 and term2 do not unify.
Unifies term1 and term2 if possible, with occurs-check enabled.