While im very sad that the best processor of all galaxies the 4770k is no longer produced, I have to be honest and say that the ryzen 3700x is the better deal, the 9700k have a slight higher effective single core performance wich results in a slight increase in FPS and all, plus, optimzed(saturated) 14nm process wich should allow for better overclocking, but in daily tasks thats not noticeable, plus, extra cores on the ryzen, as said before 300 times, allows you to multitask more and encode faster and yadda yadda, while you may not even use that much of the sorts, in the current situation you just lie between deciding wich one has better overall value, wich is of course the almighty 4770k but since those are long gone.
3700x no doubt my friend.