A counterexample to the rigidity conjecture for rings