Overrides the equals method to compare two instances of DIDDocument.
true if the objects are equal, false otherwise.
The object to compare with.