If I understand the problem correctly, you want to identify images that exist in both folders or that have a similar copy in the other folder.
If so, I don't know of a command that would do what you want. But as a work-around, you could sort the results by path, then Tag the images from one of the folders. Then re-sort by similarity, and you can recognize matching pairs by the fact that one of the similar images has a tag and the other does not. If neither or both images are tagged, they are from the same folder and you can skip them.