I think the part you're missing is how the best/lowest hand is calculated. It doesn't start with the lowest card you hold (A), it starts with the highest card of your lowest 5 cards. Therefore 8-6-5-3-A (lose) is a worse hand then 7-6-5-3-2 (win) because the 7 is lower than the 8.