I came here for the same reason. What I found is that using the WF-1000XM4 (ear buds) is they are working fine in my office with the phone open or closed. When I use these on a NYC street, the connection is poor, audio continually drops out, choppy; tied phone open and closed.
Switch to an iphone and the WF-1000XM4 work fine. Also work with a Pixel 5 and Note 20. The fact it works in my home without an issue, maybe it is the bluetooth in the phone and not the codec.