Follow these steps to turn on automatic duplicate detection:
- Select Edit > Catalog Settings (Windows) or Lightroom Classic > Catalog Settings (macOS).
- In the Metadata tab of the Catalog Settings dialog box, select the Automatically detect duplicates for all photos option.