Generally speaking, I do believe that ANC affects sound quality in a negative way, but it really depends on implementation and the environment you are in. Particularly bad cases may be where in a quiet environment you will hear an added hiss from the ANC, and that noise will be added to anything you hear. OTOH, if you are in a plane, that hiss isn’t going to be much noticeable, and the fact that you can actually hear the music would negate any adverse effects from the ANC. Also, typically speaking, the best sounding earphones/headphones don’t come with ANC, so there’s always going to be an inherent tradeoff in sound quality when you go with ones with ANC.
If you are used to having earphones tight in your ear canal, then noise isolating earphones may be enough for your needs. But if you haven’t tried this yet, just know that there’s a learning curve, and it ultimately may not work out just because of your ear canal shape or just your sensitivities. From this point of view, over the ear headsets may generally be a safer bet.
Also, it is my understanding that ANC works best with “systematic/consistent” noise like airplane engine noise or AC hum, although newer ANC headsets may be more adapted to work with random voices and noise in the office environment.
Just some things to consider, hope this helps!