I also wondered, why this cannot go to the VMs config payload.
What "this", what "payload"? It'd be great if you could at least go for a specific questions if you have to necro-bump old threads...
The whole EFI vars content? An efidisk0 entry pointing at the temporary EFI disk? ...?
The first one doesn't make much sense, as this is used as RW pflash device for qemu, hardly something one wants to back as some base64 encoded value inside a config file.
For the second: Because, as Dominik stated, and you quoted from this old thread already, it's a
temporary disk. I.e. PVE cannot automatically figure out which the correct storage would be, as that's a user decision, so a temporary place like /run has to be used, which, as is, makes not much sense to add to the VM config as it's gone on next boot and would then cause errors.
And as the VM wizard requires setting a storage for an efidisk, if OVMF is selected, this is rather an edge case anyway, as it basically can only happen if one uses the API to create VMs, in which case the API usage needs fixing anyway, or switching from SeaBIOS to OVMF after VM creation, in which case the web UI shows a rather prominent "You need to add an EFI disk for storing the EFI settings. See the online help for details." hint.