I've seen that different authors define the acceptance probability $\alpha$ of the Metropolis-Hastings algorithm with target distribution density $p$ and proposal kernel density $q$ differently; some define $$\alpha(x,y):=\begin{cases}\displaystyle1\wedge\frac{p(y)q(y,x)}{p(x)q(x,y)}&\text{, if }p(x)q(x,y)>0\\\color{red}1&\text{, otherwise}\end{cases}\tag1$$ and others define $$\alpha(x,y):=\begin{cases}\displaystyle1\wedge\frac{p(y)q(y,x)}{p(x)q(x,y)}&\text{, if }p(x)q(x,y)>0\\\color{red}0&\text{, otherwise}.\end{cases}\tag2$$
So, is one of them wrong or does it simply not matter which one we use?