Function that compares two hexadecimal values, especially really large ones, like BSON IDs.