Will you be overclocking?
If not, I'd consider the Ryzen 7 2700X, as it is cheaper, has better multi-thread performance, and includes a heatsink and fan (K series Intel processors no longer do, so you'd have to buy an aftermarket cooling solution).
If you'd like to go cheaper, the Ryzen 5 2600X would probably serve you better than the 8600K, if you're not overclocking because of the much higher thread count.