Wouldn't work for individual songs, this is where algorithms like the ones Shazam and LaLa use come into play since they'll actually look at the audio file. Getting this correct is pretty important or you'll end up with the wrong songs.
Pirates can actually try to game the algorithm and rip albums in bad quality to minimize file size but good enough for Apple to recognize the songs as such.