How can I remove all of my duplicate music

As mentioned in other thread https://community.metabrainz.org/t/color-coding-or-sorting-files-based-on-validity-of-match/337276 we could remove duplicate music outside musicbrainz if quality can be found in filename.
But: In some other thread I found something of “only 1st 2 minutes are counting for quality” - so you wouldn’t find bad endings like “that was song xxx from band yyy” in the last 15 seconds of your song…

So for me I see 2 steps:
1st derive song quality from whole song
2nd not writing song song(1) song(2)… - writing song(85) song(90) song(75) song(85)(1)…