protect against ObjectId vs String collisions when comparing properties.