Compares two EntityId instances based on their underlying values.
true if both instances have equal values and are of the same type.
true
the object to compare with.