Compare two elements for being equal.
This should be a proper equality relation.
@override bool equals(e1, e2) => isIdentity ? diffEquality.areIdentical(e1, e2) : diffEquality.areEqual(e1, e2);