Thanks guys,
It's kind of a toss-up between the two, with gaming edge slightly favoring the 8700k, but productivity (depending on the specific workloads) leaning towards the 2700x.
You mentioned the iGPU of the 8700k which beats the ryzen in those kind of tasks! Then I'd probably go with 8700k!