Commentators explain that God's judgment was severe because Onan's act was rooted in multiple sins. John Gill points to envy toward his deceased brother, a lack of love for his memory, and covetousness for the family inheritance. John Calvin describes the act itself as 'horrible,' an attempt to extinguish the hope of family and kill a potential heir before he could be conceived.