Create a new library,

import the images from both libraries (https://support.apple.com/en-us/119920)

View > Utilities > Duplicates

or use jdupes or czkawka on both directories.

Great tip, but also: exactly.