$$X = \left( \begin{array}{ccc} w & x \\ y & z \end{array} \right)$$
$$Y = \left( \begin{array}{ccc} w & y \\ x & z \end{array} \right)$$
I know that matrix $X$ is similar to matrix $Y$ when $Y=S^{-1}XS$ for some invertible matrix $S$. So consider:
$$S = \left( \begin{array}{ccc} a & b \\ c & d \end{array} \right)$$
$$S^{-1} = \frac{1}{ad-bc}\left( \begin{array}{ccc} d & -b \\ -c & a \end{array} \right)$$
I was thinking that we could compute $S^{-1}XS$ and set that equal to $X$, but I was wondering if there was an easier way to determine whether $X$ is similar to $Y$ for all $w,x,y,z$. When I tried to solve the multiplication by hand the expressions got very long, so I'm assuming there must be some trick I'm not seeing.