The first question that comes to my mind is:
What would you use your PC for ?
In any case, both CPU have 6 cores 12 threads, the main diference is that the core i7 8700K is on the top tier of Intels line, while the 3600 is on the lower part of Ryzen 3xxx line up.
As for dif in performance, the 8700K should be pretty much a bit faster on most scenarios. In games the 8700K will be faster on pretty much anything, and you can overclock it (if you have a high end cooler or AIO). Also depending on the motherboard brand and model, you could even go for a 9xxx intel cpu (of course the dif between them and the 8xxx will ve really close to nothing, unless you can jump to something like the 9900K. But then again, the higher you go on the model, the small the performance ratio goes up (but the of course you will pay a premium for intel highest end part).
On the AMD side of things, if you couple the Ryzen 5 3600 with a beefier motherboard, down the line in a year or two, you could do a huge jump in performance by going with something like a Ryzen 3900X.
Sadly, we are on a complicated time to choose one over the other, cuase AMD said AM4 will be supported till 2020, which could mean Ryzen 3xxx is the last "new" cpu for this socket, or that in 2020 AMD can come out with Ryzen 4xxx Zen2+ ?. On Intel, most probably the actual socket is basically dead as soon as the 10th core i gen comes out with a new chipset and a new socket to support it.