Comparisons for n-of-a-kind and two pairs.