My wife has an iPhone and I have enabled the iCloud sync and storage optimization so I expected that photos were to be deleted on the iPhone if the free space would become scarce.
However, several GB of storage are still in use by photos after the memory consumption reached a critical threshold. All photos and videos are synced to iCloud.