An 1800X has 8 cores with SMT to better handle up to 16 threads, but most games will likely not utilize that many threads anytime soon. So in most games, some of its cores will be sitting there not doing much of anything. The 8600K has just 6 cores without SMT, however, relatively few of today's games make heavy use of more than 4 cores, so 6 should be enough to handle most games well for quite a while, at least so long as you're not live streaming. The 8600K does offer some more performance per core though, and at least in current games, that will likely be more beneficial to performance. As far as gaming performance goes, the 8600K would probably be the better option.
There are other CPUs worth considering as well though. In...