Hi Sabre, and welcome to this forum !
I think Com def has her proper origin... So how can you choose which comp instance will not be deleted ?
The defintion of duplicate is where two or more of the same component definition have the exactly the same origin.
So you want to delete duplicate component definitions, right ? you want to make component definitions unique ? I don't understand... Sorry !