4 hearts on the board. One guy has a flush Ace high with a 4 of clubs kicker.

Another has king high flush with a queen of spades kicker.

Does it matter the high card of the flush, or does it go to the kicker?