Between AKo and 22, 22 has better raw equity but AK has better expected value. Understanding the difference between these 2 concepts will teach you a lot about poker so I recommend looking it up. If you are not all in preflop then 22 will do very badly.
AKs and 22 are approximately a flip. But again, unless you are all in pre, 22 will realize equity terribly and be forced to fold a lot
I choose AK! because with 22 there is always a thought that anyone who supports even with a minimum card of 23 and catches a pair of 3 wins me! very disappointing, but with AK I always think: I did everything I could!))
Though it's a potential coin flip I would still choose AK because it has more playability post flop. Deuces is always hard to play just like having Jacks.