I was looking for some duplicate images in amongst thousands of images. I didn't find this functionality in any of my usual image viewers.
That's when I discovered "findimagedupes". It's a command line program to find "visually similar or duplicate images". This is better than something inside an image viewer, as findimagedupes can be included in scripts.
Example:
findimagedupes -R -- .
[Compare images in all subdirectories of the current directory.]