This is only used by "generate" and thus only useful for tests and testnet.
On mainnet "generate" isn't useful and getblocktemplate is used instead.
The commitment can be included as an OP_RETURN output pushing the magic bytes 'UTX0' followed by the 32-byte commitment hash