That's what facets as described above will give you.
If it were me, I'd be using foo_sqlite. Using this you can run sql against your media library/playlist to identify duplicates (based on md5) and then push the resulting tracks out to a playlist.
drop table if exists Playlist_Updatable;
create virtual table Playlist_Updatable USING MetaDB_Module(no_multivalue_split,playlist);
insert into Playlist_Updatable (path, playlist_name)
select path,
'Duplicate Tracks'
from Playlist
where playlist_index = active_playlist()
and md5 in (select md5
from Playlist
where playlist_index = active_playlist()
group by md5
having count(*)>1
);
drop table Playlist_Updatable;
If you want to run it against your entire media library, just use
drop table if exists Playlist_Updatable;
create virtual table Playlist_Updatable USING MetaDB_Module(no_multivalue_split,playlist);
insert into Playlist_Updatable (path, playlist_name)
select path,
'Duplicate Tracks'
from mediaLibrary
where md5 in (select md5
from mediaLibrary
group by md5
having count(*)>1
);
drop table Playlist_Updatable;