I'm sorry, but this is incorrect. You wrote a lot about non compliant devices, or generic devices, or bad drivers but not one of your descriptions actually said how those would cause this issue. The reality is that they're not the cause of this issue.
This behavior is caused by the fact that windows always switches to the most recently connected device. If they disabled that behavior and instead allowed you to actually select and lock in the device you want used this would not happen. Always switching to the most recently connected audio device is a bad behavior when there are tons of peripherals where the audio device is NOT the primary role of that peripheral and you could be connecting it without any desire to use the audio from it.
On top of that, you talk a lot about how you don't buy generic bluetooth devices etc, but I notice you mention nothing about hdmi...which the fact that hdmi has an audio channel and windows is assuming there's an audio device on the other side of the hdmi cable is a big part of the problem that's happening for users here. Heck, in my case the primary reason I'm getting repeated switches is due to an authentic lenovo dock.