FYI, the 9700k can be found for ~300USD at Microcenter which makes the comparison far more favorable in terms of price/performance. It was literally the difference for me in terms of deciding between the 3700x & the 9700K.
9700K is still solidly faster in per-thread performance. Having SMT gives the 3700X a boost in total performance though. The 9900K beats all the 8C Ryzens (including 3800X) and beats the 3900X in per-thread performance but loses in total performance (of course).
It depends on the pricing tier.
My 3700X costs about 20% less than a 9700K but is a bit faster in single core, and about 30% faster in multi core.
https://www.cpubenchmark.net/cpu.php?cpu=AMD+Ryzen+7+3700X&i...
https://www.cpubenchmark.net/cpu.php?cpu=Intel+Core+i7-9700K...