AAC is higher quality for the same compression level and generally preferred by Apple. MP3 should be fine too though.
EDIT: To be clear though, the programs I listed can handle all kinds of codecs including AAC and MP3. fre:ac is also good for ripping CDs if you’re into that sort of thing.