The 5600X, 5800X, 5900X and 5950X all perform the same in games because games can be played on a 6 cores 12 threads just fine.
The 5600X is good for now and near future.
The 5800X is good for now, near future and for at least 5 years.
The 5900X is good for now, near future and for at least 5 years. Not needed if you only play games.
The 5950X is just a beast of a workstation CPU and is a waste on a gaming PC.