Can't stop photo synching between mac and iphone
I've turned off iCloud photos sharing on my mac by going to Settings -> Apple ID -> iCloud and un-checking the iPhotos icon.
I've turned off iCloud photos sharing on my iPhone by going to Settings -> [my name] -> iCloud -> Photos and deselecting iCloud Photos.
I also emptied my photos in iCloud storage on my iPhone by going to Settings -> [my name] -> iCloud -> Manage Storage -> Photos -> Disable and Delete
And yet I still see photos on my iPhone which were synched from my mac and which I can't delete in Library -> All Photos.
It's driving me crazy. II have duplicates from several synchings I think and I want them gone from my All Photos library but can't delete them.
Any suggestions? Everything I've seen online says that turning off iCloud for Photos should fix the problem but definitely not having any success with that.
I've also tried unchecking "synch photos to your device from Photos" in Finder but after hitting "Apply" and trying both options of keeping synched photos or removing them, they still turn up on my iPhone and I can't delete them (trashcan not an option).
I've also tried rebooting my iPhone several times.
iPhone 12, iOS 15