I just want a setting for “Do not launch Music when I put away my AirPods after a Teams meeting” for my work laptop. Is that so much to ask?

If you don't use iTunes at all: https://github.com/tombonez/noTunes has saved quite a lot of my sanity very simply.