My car plays "Africa" by toto every time I plug in the iphone to charge. It was a trifling inconvenience, then over years it became rage inducing, and now it's reached all the way back around to funny.
Mine was A-Punk by Vampire Weekend. Used to annoy me to no end, but it turned out it was a "feature" of the car stereo to just default to playing alphabetically. Buying a new car fixes that little issue. Easy!
Reminds me of one of my favorite all time HN posts: https://news.ycombinator.com/item?id=32163667
If I had to pick one tune to listen to every day, that wouldn’t be the worst one.
Don't get me started with that U2 album I never purchased...
Buying a USB data blocker for your car fixes this issue.
It's not the phone deciding to do it, when the device connects the car is telling it to play. Check your infotainment settings to see if there's a way to turn it off.
Apple doesn't have an official way to prevent it, but I think you could do it with Shortcuts and an automation to pause music triggered by "When CarPlay is connected."
If it's tricky to get it to trigger at the exact time it starts playing, you could even do like: