Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/stm32/stm32g0/STM32G051/TIM1/TIM1_OR1#0x0
OCREF_CLR=B_0x0
option register 1
Ocref_clr source selection This bit selects the ocref_clr input source.
0 (B_0x0): COMP1 output is connected to the OCREF_CLR input
1 (B_0x1): COMP2 output is connected to the OCREF_CLR input
https://github.com/modm-io/cmsis-svd-stm32