If two poker hands are the same, the winner is decided by a kicker. A kicker is the highest value card outside of the pair/three-of-a-kind etc. For example, a pair of 8s with a K kicker beats a pair of 8s with a 10 kicker. If two hands are identical, the pot is split.