Given real symmetric matrices $A,B\in\{0,1\}^{n\times n}$ is it true that $$AX=XB$$ has a solution of form $X$ a permutation matrix iff a solution with $XX'=I$ exists? We are over reals.
It is clear if there is a solution $X$ of permutation matrix form then $XX'=I$ solution exists. Is there any truth in converse statement?