What type of rear derailleur to buy?
The Tourney RD TX-35 should work fine. All Tourney level derailleurs work with 6 and 7 speeds (sprocket spacing is the same). The 35 without the extra hanger tab looks much less cheap in my opinion.

I agree with suggestion made in comments to replace the cassette and chain at the same time.