$AX - XB = C$, Resultants and Generalized Inverses