player 2 is right. only the best 5 cards count

Player 1 has K K Q Q 9
Player 2 has K K Q Q A