I love Thunderbird, but I wouldn’t recommend it for Microsoft 365. You can add the mail account via IMAP (if you turn off Security Defaults), but I don’t believe there’s a way to get Microsoft’s contacts and calendars to sync up, since they don’t support CardDAV or CalDAV.