You have some good answers and some bad answers here.
It’s not the fault of the people answering, what you’re asking has been piecemeal and scattershot in implementation over the last decade so everyone has some bizarre response they came up with to be happy.
Allow me to share mine: use a kvm switch.
The switch lets you plug two computers into one keyboard, video, and mouse. But you’re gonna just use the video part. Plug it into both your motherboards and gpus video ports and push the button to switch back and forth between the gpu for gaming and the motherboard for everything else.
Why only gaming? Because everything else you reference can make use of a gpu that’s not being used for video. I guess some game engines support rendering frames and then sending them to another output device but that’s not something to rely on.
So when you’re using blender you see the model on your monitor plugged into the motherboard but the heavy lifting is done by the gpu. When you transcode a video the same thing happens.
I came to this solution after trying to do what you’re asking for in x11 and having a bunch of headaches about it everytime an update would come down.
Pushing a little button on the desktop was easier than messing around with software to make a rube Goldberg contraption to do the same thing. Mine had two leds on either side to indicate which “computer” I was using at the time. I ended up wrapping electrical tape around the rim to cover them both up and cut out the word “turbo” from the tape over the green led that indicated I was looking at the gpu.
Some distributions have that. Some have it built into the tools like arch. For some you just boot your installation media and run only the “install bootloader” step.
About the only universal way is to boot usb, pivot-root or chroot to switch to the installed system you wanna run and do grub-install, although you need to understand a few things about your system to not make errors.
Once you pick something to stick with, go ahead and look up its process. Think of it like practicing changing a tire in the grocery store parking lot before you actually need to do it on the side of the road.