It wasnt just a matter of failing to fulfill the Levirate obligation, because the punishment for that is described in detail in Deuteronomy 25: 5-10: it consists of a public insult: the woman can take off the sandal of the man who refused to impregnate her, and spit in his face.
That's it: public disgrace of the man at the city gate.
But Onan was not just given public disgrace: God judged him worthy of death.
Why? Because it wasn't just his refusal of his Levirate obligation-- that only merited a public shaming --- but the WAY he did it: by performing a perverted, contracepted act.
That's why God slew him. God thought this was detestable.
The point is this: for 1900 years, all Christians---Protestant, Orthodox, Reformed, Catholic, Evangelical, all of them--- understood God's law as forbidding any kind of intentionally sterile sex, including both Onanism and Sodomy.
Now, since 1930, most of them ignore, have redefined, or have accepted, Onanism.
BTW, that's not a "development of doctrine." That's a rejection of doctrine.
Give them another 15 years, and most of the contraceptors will redefine Sodomy as well. Many of them already have, because morally they're closely related: both sodomy and contraception are the rejection of natural fertile sex, and the choice of something other than natural fertile sex.
That's not just a "slippery slope," it's a logical four-lane highway.
He did not do the ritual of not taking his brother’s wife, and bear public shame; instead took his brother’s wife and then did not perform the act of giving her a child. Therefore, he broke the vow.
This example is why doctrine should never hang on a single historical narrative. It is akin to bad case law.
Let’s look at this another way: what if Onan never had a relationship with his brother’s wife? Would he not have violated the duty to bear his brother a child? And is it a sin to intentionally have a childless marriage, regardless of the means?
And as for the other items: fornication and sodomy are outside of marriage, despite what some of your clergy claim.
Oh Good grief! Don’t you believe God? GOD defined Onan’s offense, but apparently the catholic trained mind must focus upon sex-sin rather than defying God’s command to produce a descendant for the deceased brother!
BTW, ‘teacher’ did you know that some ‘seed’ can be lost when a man urinates, especially first thing in the morning? God doesn’t fit in the Catholic box, sorry.
It wasn't the contraceptive sex that was the sin thus making all contraceptive sex sinful, it was the rebellion against God's Word. That was the sin that judged.
Rebellion is as the sin of witchcraft.