I think having to codify "obscenity" so deep into the law to even make it become an exception to free speech is an indicator of a bigger problem. I know the US is generally a lot more conservative about this, but it really feels like more extreme forms of religion/politics are relying on the popular vote to shortcut solutions.
No child was ever damaged from getting a glimpse of a very normal adult human interaction. When young people are old enough to be curious about this (e.g. they're looking to access spicy content), the correct approach IMO would be an open dialogue from their parents and extensive education/access to age-adapted materials in school. There is nothing dirty, shameful or obscene about sex, it's a natural process. It's also not scary, and it can be practiced safely and responsibly.