A YubiKey device is more convenient compared to SMS and email methods as it does not require copying and pasting the code or entering it manually. You just press the button on the device and that's it.
Some other advantages include the generation of much longer than traditional six-digit codes that ensure higher security, easy migration, and remote access options.