Ace-king vs a pair of twos: the twos are ahead

With A♠K♥ against 2♦2♣, the twos win 52.8% of the time, ace-king wins 46.6%, and 0.6% are split pots. The twos already have a pair, while ace-king is still just ace-high and needs to catch up. It misses the flop completely, with no ace and no king, about two times in three.
Make it suited: 50/50

Swap in A♥K♥ and the hand becomes a true coin flip: 50.0% equity each. The extra flushes are worth about three percentage points, which is exactly the gap between losing this flip and breaking even.
Against queens: 54 to 46

Against Q♥Q♣, even suited ace-king is behind, with 45.8% equity against 54.2%. The queens take two of the four queens ace-king needs for a ten-to-ace straight, and one of its hearts. So "a pair against two overcards" isn't one number: it ranges from about 50/50 to clearly behind, depending on the pair and the suits.
Ace-king vs ace-queen: 3 times out of 4

Now put A♠K♥ against A♦Q♠. Ace-king wins 72.5% of the time and splits 4.7%, for 74.8% equity. Both hands share the ace, so ace-queen mostly needs a queen to get ahead, and even then a king can take it back. This is domination: one hand shares a card with the other and has a worse kicker.
What this means at the table
A coin flip is rarely exactly 50/50. Against a smaller pair, ace-king is usually a slight underdog, and against a bigger pair it's clearly behind. Where ace-king really earns its reputation is against the hands it dominates, like ace-queen, ace-jack and king-queen. When you're deciding whether to get all in, think about which of those hands your opponent is likely to have, not just whether you're "flipping".
