Two phases score differently
Cribbage scores once during play, when cards are laid in turn, and again when each hand is shown. Combinations in play depend on the order and on the opponent, while those in the show depend only on the cards.
From Morehead and Mott-Smith, 1983, under 'Cribbage'.