Input Power Rail detection circuit

I have the circuit as in attached image.

It will auto detect the input power rail VPWR ( 12V or 5V ).

If the input power rail is 12V, the VPWR_SEL will be “high” otherwise VPWR_SEL will be low.

My co-worker keep bothering me for long time for this circuit.

Do you thank it will work properly as what I want ?

Very appreciate for your suggestions.