Its more like Soundhound in that the matching can be fuzzy. Covers are technically illegal as well, but through an agreement with the publishing houses YouTube actually has an opt-in program for labels which pays out 50% of all ad revenues for cover versions of songs in their videos.