Gaming speed, cores and clocks
The Core i5-12450H and the Core i7-8700 are within a few percent of each other for gaming. In a game, you will not see the difference.
The Core i5-12450H has 8 cores and 12 threads, and the Core i7-8700 has 6 cores and 12 threads. The extra cores of the Core i5-12450H help with video editing, streaming while you play and heavy multitasking more than with the game itself. Boost clocks are 4.4 GHz and 4.6 GHz.