Gaming speed, cores and clocks
The Ryzen 5 7640HS and the Core i5-11600K are within a few percent of each other for gaming. In a game, you will not see the difference.
The Ryzen 5 7640HS has 6 cores and 12 threads, and the Core i5-11600K has 6 cores and 12 threads. Core counts are the same, so cache size and clock speed decide the difference. Boost clocks are 5 GHz and 4.9 GHz.