Pass 1 handles exact role-level dupes. Pass 2 detects same person/entry/type with different roles and keeps the credit with a meaningful role, deleting the empty one.