The AI may benefit more from the increased memory. Especially if you plan on 4K upscales. Depending on what you are doing. You'll be using 4GB to 12GB RAM as video memory. You'll want enough remaining memory for CPU related tasks. I'd say even 24GB is pushing it as it is split between the two. It may take longer on some tasks due to thermal throttling. But that's just time. Whereas if you don't have enough memory for AI work, you hit a hard limit. AI eats RAM.