For SD, pretty much any modern CPU will be sufficient -- SD runs primarily on the GPU. All the CPU really has to do is shunt data back and forth and encode/decode images. i5-13400 will be more than sufficient -- arguably overkill, as SD will not be making use of all the cores. Much of the time the CPU will just be waiting for the GPU to finish!
32 GB main RAM is more than sufficient. The main thing you will need is not system RAM, but GPU RAM. Ideally, you want 8GB minimum, ideally 12GB, of GDDR6 GPU RAM. (6GB is, practically speaking, the absolute minimum for any decent performance at reasonably high resolution output, but will restrict you to certain workflows and workarounds, and somewhat reduced performance. You will encounter occasional issues with RAM allocation for certain workflows.) For best Stable Diffusion experience, focus your spending on the GPU, even if it means compromising on other components. (This won't help your gaming experience, but SD just needs GPU RAM + raw number crunching power on the GPU -- pretty much everything else is secondary).
Last time I checked, SD doesn't allow processing on multiple GPUs simultaneously, unless you run multiple instances (possibly there are some experimental forks out there that do this to an extent). So you can't (currently) take a single job and run it on 2x GPUs, but you can take two jobs and run each on a different CPU (i.e. running two instances of SD). Multi-GPU support is being worked on, though, so maybe by the time you save up for a beefier GPU, who knows...? But to be honest, if you can go straight for the 4060 if you can, even if it means lowering the specs of your other components. But make sure you have a decent reliable PSU rated for whatever GPU + other components you have, with headroom.