At launch, consoles can be better dollar/fidelity than the directly equivalent self-built PC - economies of scale etc. Some never are (e.g. Nintendo). That only accounts for bang for buck. If money isn't an issue then I don't _think_ there has ever been a console that could hold a candle to the best-in-slot same generation PC.
Take the first XBOX as a good example, it had 32MB of RAM shared between the CPU and GPU (the sharing is where it had some performance gains). Even the most basic PC has 64MB RAM + 16MB VRAM, with enthusiast already at the 512MB level.
The Series X has 16GB of shared memory, where-as your typical 2020 gaming PC might have had 16GB + 8GB. An enthusiast PC at the time would have been something like 32GB + 24GB or 64GB + 24GB.
That means more room for level data, entities, physics, AI (RAM), and models, textures, buffers (VRAM). If you want to use all available VRAM you need to fill it with bigger textures (which are usually the bulk of the data). That means you need higher def textures on-disk, which means it isn't using the same assets as consoles (though consoles are probably using downscaled versions of the same assets).
To have 24GB VRAM in 2020 meant you were extremely lucky or a scalper.