In 5 years, all you see today, or even announced will be obsolete.
Buy what you need today today.
Look out perhaps 1-2 years at most.
The key is probably the graphics cards you foresee using and the types of games you will play.
Games such as sims, mmo, and strategy tend to depend on the performance of a single master thread.
For that, Intel is likely better.
Multiplayer games with many participants are about the only ones that take advantage of many threads.
ryzen is ok there.
Fast action games depend most on the graphics card.
Today, the I7-7700K is probably the best gamer you can buy if you are using a strong graphics card like the GTX1080ti.
It does just as well as the 6 core I7-7800X in this test...