Its actually about the same IPC as KabyLake, KabyLake has a clock speed advantage, Ryzen has a core advantage and a huge cost advantage, and better power consumption if you're interested in such things, makes them cheaper to cool, i guess.
Yes, The Ryzen 5 is able to keep the 7700K at arms length, its not more than 10% faster in most things, the 7700K is much faster in a few, but the Ryzen 5 is also able to keep better minimums is a few other things, smooth gameplay.
Its pretty clear when you look at these performance differences you're getting for the 7700K its less than its clock speed advantage, its not that Ryzen has better IPC, its maybe 1 or 2% less if anything, what Ryzen does have is more compute threads, more than the 7700K's 8.
In a 6 core Intel thread that is not an Insult to Intel, not anymore, something else you need to come to grips with, its just fact and a welcome one given we will now get 6 core CPU's from Intel too.
Show me any article that states ryzens IPC is close to that of kaby. I posted a graph a few days back of test the stilt did over many different benchmarks and clock for clock ryzen is about haswell perf. Which is can attest to as my single core cinebench score is the same as my haswell.
I'm not hating on ryzen here but it's IPC certainly isn't the same or even within 5% of kaby. We have to look outside of games to see this to remove GPU limitations.
When coffee arrives and the core advantage disappears i expect we will see very different results.