it was gil-galad , elven-king and elendil of westernesse who overthrew sauron , though they themselves perished in the deed ; and isildur elendil 's son cut the ring from sauron 's hand and took it for his own .