Use the objectID for equivalence and hashing if it exists.