I’ve been burnt before using ! and forgetting what command I typed previously, thus invoking the wrong command line.
!! is handy for the sudo example, but beyond that, I tend to prefer pressing the up arrow to cycle through the history rather than picking the first item. Eg:
!ssh
vs ssh[up]
It’s the same number of key strokes but less error prone