Use digital pin,both as input and outpout,without always reconfiging the pinMode

As you suspect it creates a short circuit if the pin is an output and low when you press a button. The better method is to just wire the two switches to unused arduino input pins and do all your 'interlock logic' in your sketch software.