Compares two BsonValue to verify whether they are equal according to the rules documented in BsonValue.
Generates a hash code for a BsonValue instance, that respects the equality rules documented in BsonValue.