Tests that we optimize comparisons where lhs and rhs are the same.