Hi there, based on your photos and descriptions, I'd like to tell you that neither IMG_0396.JPG nor IMG_0371.JPG are duplicates. They are different photos but are related to the same items and shot from the same angle. Actually, if a photo is derived from another photo, it should be named after the original one. For example, the duplicate of IMG_0396.JPG should be IMG_0396.1.JPG and the duplicate of IMG_0371.JPG should be IMG_0371.1.JPG.
If you want to pick duplicates and retain the original one from a batch of photos on Macs, iBoysoft MagicMenu is recommended here. It can quickly search for similar photos in the selected folder on your Mac through the right-click menu. This duplicate photo finder allows you to sort the search results by creation date, and clean up a large number of duplicate photos with one click to free up disk space on the Mac hard drive.
All you need to do is download it on your device, add the duplicate photo cleaner extension, and then launch it to find the duplicates for further action.