Gaming speed, cores and clocks
The Core i9-11900K and the Ryzen 7 7840HS are within a few percent of each other for gaming. In a game, you will not see the difference.
The Core i9-11900K has 8 cores and 16 threads, and the Ryzen 7 7840HS has 8 cores and 16 threads. Core counts are the same, so cache size and clock speed decide the difference. Boost clocks are 5.3 GHz and 5.1 GHz.