No software will do that. One reason is both a studio and live version could have exactly the same name and be the same length. iTunes matches based on song name and artist name. There are many other reasons not to get rid of duplicates, such as if you want to keep complete albums, where a song appears on both. Or a song is re-released in a different style, such as acoustic. Deleting dupes is best done manually.