Revert "PYTHON-710, simplify SON's equality operator."

This reverts commit 551e1e3edff029ffb1ad5e789b662a050ddf3a49.
The change did not work as expected in Jython.