It is not generally possible to do so.
For a concrete example, we know that there can exist no permutation matrices $P,Q$ such that $$ P\pmatrix{1&2\\\2&1}Q = \pmatrix{2&1\\\2&1} $$ If such a $P$ and $Q$ existed, then both matrices would necessarily have the same rank.