equals

Compares two BsonValue to verify whether they are equal according to the rules documented in BsonValue.

This method may be used in BsonValue implementations as a default implementation.