I used
this one from Amazon for a long time. No video degradation, auto-swaps to the active device. Doesn't need an extra cable. Pretty great for an 8$ device.
I would generally advise against using the optical out on your TV in the future however. Most soundbars have HDMI switching capabilities anyhow.