So you want to compare between them as such if they are different entities, then they are not equal, and if they are the same entity, then they are equal?
i.e. using the PK.
Or do you want to perform the comparison based on other field values?
Perhaps it's not a matter of equal or not, maybe which is greater than the other....etc.