Techspot pits the i7-7700K against the slightly more expensive hexa-core i7-7800X, and the results are conclusive: the 7800X might give you more cores, but it's less (game) performance for more money.
https://www.notebookcheck.net/Are-six-cores-better-than-four-for-gaming.234162.0.html