Hi,
From the GPIOx_PSOR register description, write 0 doesn't affect other bit status:

While, the GPIOx_PDOR register, write 0 will affect other bit status:

So, For example: if want to set PTF5 (I2C1_SCL), it need to use:
GPIOF_PDOR |= (0x1 << 5) ;
If want to clear PTF5 (I2C1_SCL), it need to use:
GPIOF_PDOR &=~(0x1 << 5);
Wish it helps.
Have a great day,
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------