The new option was found inside the Android 17 QPR3 Beta 4 build for Pixel phones. Its on-screen description says it will always play audio in your headphones when other audio devices such as speakers and cars connect to the phone. In plain terms, your headphones get priority, and a new connection no longer steals playback.
According to the beta findings, the toggle sits under Settings > Connected devices > Connection preferences. There is a catch, though. It is not visible to ordinary beta testers. It had to be enabled manually, so installing the beta will not necessarily give it to you.
Google has not announced the feature, and nothing guarantees it will arrive with the final Android 17 QPR3 release. Features found in test code are sometimes pushed to a later update or dropped altogether. For now, treat it as a strong sign of where Android is going rather than something you can switch on today.
The same test build also points to smarter priority notifications, which would use on-device AI to push time-sensitive alerts to the top. Both changes are still unconfirmed.