As far as streaming formats, Apple Music is available as Apple Lossless, which, as the name states, doesn't throw anything out like lossy compression formats do. It doesn't cost anything extra, you just have to go into your settings and turn it on. https://support.apple.com/en-us/HT212183
That being said, I agree with them and have found that their AAC codec is really good. I thought I was getting Apple Lossless on my Mac recently when I was checking my new speakers and then realized weeks later I was still using AAC. I couldn't tell. My ears might be shot anyway.