Deep comparison of two variables