I don't know how Amazon and Google photos work and suspect any programme may not check external sites. My suspicion is that downloading them all to your PC, clearing out Amazon and Google, then running one of the many duplicate finder programmes on your PC, might work.