An algebraic approach to certain cases of Thurston rigidity