The cache and clock rates of the Ryzen 5 5500 are lower than the Ryzen 5 5600X, but it is still enough to be used with the latest NVIDIA RTX 4000-series graphics cards like the RTX 4070.
Similarly, it can be paired with AMD Radeon RX 6800 XT, allowing you to play 1440P Ultra or 4K Ultra gaming with consistent FPS and minimal bottleneck.