It’s rare in our field these days, so I think it’s worth calling out:
macOS AirPods autoconnect feature used to be terrible, and now it’s great. They changed the logic and it does what it needs to now.
If you disabled it in the past, give it another try