At this time, the Microsoft Multi-Factor authentication system is not configured to allow your first device enrolled to be a YubiKey security key. You can use a YubiKey as your primary authentication method, but you will need to set up an alternate method (passkey or Microsoft Authenticator number matching) prior to enrolling a YubiKey.
Video Tutorial - Enrolling a Passkey in Apple Passwords
Video Tutorial - Enrolling a Passkey in Google Passwords
Video Tutorial - Enrolling a Passkey in Windows Hello
Video Tutorial - Enrolling a Passkey on a Mac
Video Tutorial - Enrolling the Microsoft Authenticator App on Mobile Device (Number Matching)
Video Tutorial - Enrolling a Passkey in Microsoft Authenticator