Turn a mains AC load off when another one is ON
If you are the one who has control over turning off load A, then a relay is a good way to do it. A DPDT relay with load A on the normally closed toggle and load B on the normally open toggle would work quite nicely. Load B would be turned on at the same instant load A is turned off, when your relay is activated.