Looking at clock speeds, the Ryzen 7 5700X ran at around 3.85GHz all-core under Cinebench loading. This saw the 65W TDP chip using its full 76W package power allowance, so that was the clear restriction under the Precision Boost 2 algorithm. By comparison the 105W TDP Ryzen 7 5800X used its 142W package power allowance to run at 4.56GHz all-core – a full 0.7GHz higher!
The Ryzen 5 5600 ran at around 4.25GHz all core using its full 76W of allocated package power. By comparison, the 5600X also has a 76W power allowance but managed to squeeze out around 25-50MHz higher clocks. So, there really isn’t much clock speed variance between these two, despite the pricing difference.