MacBook Pro 16 M1 Pro vs Mac Mini M4

I have a MacBook Pro 13” 2020 M1 16Gb/256Gb and want to upgrade either to MacBook Pro 16 M1 Pro 32Gb/1Tb or just buy a base Mac Mini M4 or even upgraded version with 32Gb of Unified Memory.

I primarily use my MacBook at desk and don’t really do much hard stuff on the go but only at home. However i may need to take my computer somewhere from time to time.

One thing that stops me from buying Mac Mini M4 is GPU performance in comparison with M1 Pro.

I primarily work in Unity, some Unreal Engine, Blender, Logic Pro with 24 bit/96 khz projects and Waves or Neural DSP plugins, Xcode, Docker, VS Code, a little AI stuff, a little video editing and upscalers also i like to play from time to time.

Is there really a comparison of M1 Pro (10 core CPU and 16 core GPU) and M4 (10 core CPU and 10 core GPU) in gaming or gamedev tasks?

In my country i can buy secondhand almost new MacBook Pro 16 M1 Pro 32Gb/1Tb for around 1500-1700$ and Mac Mini will cost me around 560$ for base model, 1021$ for 32Gb/256Gb and 1255$ for 32Gb/512Gb. If i will buy new MacBook i will sell mine for about 600-700$.

If you have similar use case and you think that i can go on with 24Gb of RAM or even 16Gb let me know.

Please help me decide 🙌🏻.