My solution is a bit different, I have a Ryzen desktop with an NVIDIA GPU when I need to game, as I don’t game on the go, and honestly, gaming on the Mac doesn’t exist.
But I absolutely work on the go, and need the battery life I get from the Mac so I’m not constantly looking for a place to charge.
I use a similar setup, I need CUDA for work. But machine learning on a fast CUDA-capable GPU on a laptop is brutal battery and heat-wise. So, I just SSH into a Ryzen tower with a fast GPU for machine learning. (The MacBook with its AMX matrix multiplication units and Metal Performance Shaders is fast enough for short test runs.)
You can also put a much faster CPU and GPU in a workstation than a laptop, if you have enough headroom for 105W TDP CPU and 350W TDP GPU.
But I absolutely work on the go, and need the battery life I get from the Mac so I’m not constantly looking for a place to charge.