I kind of hate Thunderbird because it is in every way worse than beloved Apple Mail.app, except for one: it can do the Microsoft 365 IMAP Oauth2 dance, but Mail.app can't.
Mail.app's native Exchange functionality has broken for me before and caused me to lose mail so I will not trust it. I thought I had the right solution with an IMAP connection to O365 Exchange until they forced that to use Oauth2.