Speed and memory
In our performance index the GeForce RTX 4090 scores 100 and the Radeon RX 7900 XTX scores 73, which makes the GeForce RTX 4090 about 37% faster. That is a gap you will notice: roughly one step up in quality setting, or the difference between 60 and 80 fps.
Both cards have 24 GB of video memory, so memory will not separate them.
In our estimates for popular games at 1080p on High, the biggest gap is in Call of Duty (217 against 163 fps), and the smallest is in ELDEN RING (60 against 60 fps). Games that are light enough to run above 200 fps on both cards show little difference at all.