Equality comparison using case.