We have as a known data matrices $A$,$T$.
We want to find $S$ that $A=ST$. What I would do is multiply $T^{-1}$ from right side.
$AT^{-1}=S$
And here we have $S$, but what if $det(T)=0$ so matrix $T^{-1}$ does not exists. Does it implify that searched $S$ also does not exists?
The matrix $S$ may exist, but it is also possible that it doesn't exist. If, for instance, $\det A\neq0$, then, since $\det T=0$, you can be sure that it doesn't exist.