If you want good performance for gaming Ryzen 5 is definitely better option than Ryzen 7 because it's cheaper with similar performance – but AMD Ryzen 7 5800X is far better than AMD Ryzen 7 5800 on paper with higher clock speeds! So what is better on paper is not necessarily better in real life (just because an Intel CPU has better clock speeds doesn't mean it's better than an AMD). So I would recommend buying Ryzen 7 5800X because if you want good performance from your CPU this one will give you best results! But if you don't want gaming at all then Ryzen 5 would be better choice! But AMD Ryzen 7 5800X has better clock speeds which means it will give you better performance! So if your budget allows go for Ryzen 7 5800X because it will give you best performance! I hope this helps! Hope this was helpful :) Comment below if I helped you! Thanks!!!! !