There are two types of macOS keychain:
- file-based (older, less secure, including the "login" keychain)
- Data Protection (newer, more secure, including the iCloud keychain)
Data Protection keychains support passkeys, biometric authentication, and the Secure Enclave, while file-based keychains support none of these.
Apple intends to phase out the file-based keychains in favour of Data Protection keychains, but this will probably take several years as 3rd party developers will need to update their software accordingly.
The "login" keychain is used for secrets related to your specific machine. Most of these aren't needed when you switch to a new Mac, but some items, like encrypted Time Machine backup passwords, could be lost when you switch. Apple recommends copying the login keychain from ~/Library/Keychains/login.keychain-db
when transferring to a new Mac.
As @Gilby pointed out, if you migrate using a Time Machine backup the login keychain will automatically be copied over to the new Mac.
Some items, such as Secure Notes, can be copied from the login keychain to the iCloud keychain; this is worth doing if you use the iCloud keychain. You can copy them in bulk but you have to authenticate for each one.
iOS and iPadOS devices only have one keychain, the iCloud keychain (if used).
Sources: