Remove duplicate geometries and make "types"

Hello everyone,

I’m having some issues with a script where I have a list of panels. Most of these panels are identical, but some have differences in shape.

I need to accomplish two main tasks:

  1. Remove all the duplicate panels and create distinct “types” similar to Revit definitions.
  2. Assign a name to each type and generate a plan view that shows all the panel instances in their original position along with their corresponding type names.

I apologize for explaining this in BIM terms, but this is the way I conceptualize it.
Any idea about how to proceed?

Thank you for your help!

Blocks?