Hardware protection - 2 Relays - only one can switch-on at the same time.

you could also use 2 relay as such: relay 1 provides or cuts power to relay 2 contacts,
relay 2 switches between device a and device b.