Neither. After accounting for the amount of system RAM that such on-CPU integrated graphics steals for itself (and thus becomes completely unavailable for the rest of your system to use including programs due to Windows memory management), your system may be left with a woefully insufficient amount of available system RAM for anything that's resource-intensive to run properly, if at all.
Under such a circumstance, can you get away with a slightly lesser CPU, such as an Intel i3-13100 instead of your planned i5-12400, and then adding a cheap-ish discrete GPU such as a Radeon RX 6600 or a GeForce RTX 3050? That's because the way you have it currently planned, you will end up with a severely lopsided PC in terms of the CPU-to-GPU performance balance (too much CPU and not enough GPU, in this instance). And this severely lopsided component balance will severely degrade overall system performance.