This question already has an answer here:
Table cards: 5:spades:6:hearts:7:spades:8:hearts:2:spades:
P1 hand: 9:hearts: 6:spades:
P2 hand: 9:diamonds: 3:spades:
Both players have the same straight. Is this a split? Or does P1 win because he has 2 cards of the straight directly in his hand while P2 only has the missing 9? Are cards which are in hand prioritized over cards on the table?