Allows comparing `secp256k1_pubkey` and `secp256k1_xonly_pubkey` respectively, to establish an order between them.
This is a backport of [[ https://github.com/bitcoin-core/secp256k1/pull/850 | https://github.com/bitcoin-core/secp256k1/pull/850 | secp256k1#850]].
We need this for porting `rust-secp256k1` to the secp256k1 library of this repo.