Which of these intel CPUs is better?

Poll of the Day

Intel Core i7-6700K 4 GHz Quad-Core

or

Intel Core i7-10700K 3.8 GHz 8-Core

all of the specification numbers seem higher for the later gen but I thought the higher GHz is supposed to be better?
*walks away*