how does Photos identify duplicates on import?

Want to understand what criteria Photos uses to find duplicates on import.

I'd assume file name, creation date, modified date and size.

.. but not the actual content of the image, the only criterion I care about ?!
how does Photos identify duplicates on import?
 
 
Q