Gaming speed, cores and clocks
On our gaming index the Core i7-10750H scores 38 and the Core i5-9400F scores 36, about 6% faster for gaming. That gap is small and mostly shows up at 1080p with a very fast graphics card.
The Core i7-10750H has 6 cores and 12 threads, and the Core i5-9400F has 6 cores and 6 threads. Core counts are the same, so cache size and clock speed decide the difference. Boost clocks are 5 GHz and 4.1 GHz.