Only one checkbox allowed

I’m trying to have only one checkbox selected via code. I have to options and only one needs to be selected. It needs to be a checkbox and not a drop-down or similar. I use the checkbox options for other things later. Any suggestion will be appreciated!

(From user experience perspective, it’s better to use radio buttons in this case. Just saying)