Before COVID, music was certainly less distracting than practically available alternative, everything being said on your office floor.
Strangely enough I find working in the "white noise" of a coffee shop lets me hit flow state even better than silence. Not sure if thats more due to the "i'm in this place to do the thing" effect or the actual noise though.
Music on the other hand, I cannot program while listening to. Brains are different.