This is a 'duplicate check' π
It's straightforward for objects that are instances of the same component with the same insertion point / transformation, in the same context... copy/paste+<enter> this one-liner in the Ruby Console - it works on a selection containing component-instances...
The duplicates are highlighted on completion. If you start with Entity Info open it will show what's selected still etc... Pressing <delete> when the SketchUp window has focus will remove the duplicated item...
It gets more tricky when they are 'symmetrical' and perhaps placed overlaid 'handed' - therefore with different insertion points but seemingly occupying the same volume.
A matching bounding-box check could work BUT is not foolproof... I think thomthom might have done something like this ? Do a search...