Yubico explains which YubiKeys support web authentication and Mac sign-in

Yubico Japan published instructions for using YubiKey security keys on a Mac on November 17. FIDO2 handles sign-ins to websites and apps, while signing in to the Mac itself requires a model that supports the PIV smart card standard.
Setting up a PIN and fingerprints for web authentication
Yubico lists the YubiKey 5, YubiKey Bio and Security Key series as supporting FIDO2. The company says users can set a FIDO2 PIN from Chrome settings on a Mac or from the official Yubico Authenticator app. On a YubiKey Bio with a fingerprint sensor, users set the PIN before enrolling a fingerprint. Yubico says eight incorrect PIN attempts block the FIDO2 feature, and resetting it erases registered credentials.
A PIV-capable model is required for Mac sign-in
macOS supports PIV smart cards natively. Pairing a certificate on the YubiKey with a Mac user account lets users sign in with the key and its PIV PIN. Yubico lists the YubiKey 5 series and YubiKey Bio Multi-protocol Edition as compatible. The Security Key series and YubiKey Bio FIDO Edition lack PIV support.
Check recovery options before requiring a smart card
After pairing the certificate, users can still sign in to the Mac with their existing password. Requiring smart cards through a configuration profile or other management tool applies to everyone who uses that Mac. Yubico advises checking recovery options first, since a configuration error can prevent users from signing in.