The $20 Yubikeys only do U2F; the more expensive Yubikeys also have the ability to generate one-time passwords and act as smartcards (for things like signing git commits).
I have the Nanos in all my computers because I'm used to that setup from working at Google, but that's more expensive than what I actually need.