bitcoin-util getchainparams prints the genesis hash byte-reversed compared to getblockhash 0:
bitcoin-util getchainparams | grep genesis
"genesis": "6fe28c0ab6f1b372c1a6a246ae63f74f931e8365e15a089c68d6190000000000",
bitcoin-cli getblockhash 0
000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
Use GetHex() instead of HexStr(), consistent with pow.limit in the same output and with the RPCs.
The command is new in v32.0 (#35736), so I believe this should be backported before final release to avoid changing the output format afterwards.