It depends. With Ryzen 7 5800x you can expect similar performance as compared to Ryzen 5 7600x. However, Ryzen 5 7600x will be better in gaming. So if you want better gaming then Ryzen 5 7600x will be an affordable and better option as compared to Ryzen 7 5800x. For productivity, the Ryzen 7 5800x will be a better option.