Two inputs for Single output

Sounds like you need a hotel switch - so why not use two switches that do just that, in principle you put two double acting switches in series.

Look for "2 way switch diagram" in google and you will find it!

Of course, you can use the same wiring principle with only one digital input.