The quality of AAC depends a lot on the encoder. The iPhone does it pretty well, Android not so much.
That’s what the audio nerds say, at least. Personally I can’t really hear a difference except when using the headphones with the microphone, when it reverts to some ancient codec with more noise than signal.