Did not work for me
It looks like there is an issue with the latest EG/Wayland. OBS is also crashing if using “DRI_PRIME”: OBS Studio began to crash after egl-wayland 1.1.14 was released · Issue #118 · NVIDIA/egl-wayland · GitHub
P.S.
not that it needs the dGPU.
gamescope + Shaders + 4k