Compare two elements for being equal.
This should be a proper equality relation.
bool equals(Object e1, Object e2) => e1 == e2;