how to select one logic signal between two?
You could use a set of NOT gates and AND gates to get the output you desire like so:







simulate this circuit &ndash; Schematic created using CircuitLab

This would make the inputs in decreasing priority, but never more than one would be high.