Sure, a law won't automagically fix everything. But it provides the starting point that almost every individual or group action must rely on.
(Then of course the trick is that older kids will show porn to younger ones just to mess with them. Of course ID requirements won't fix this.)
Maybe problem is not a knife. Maybe problem are parents who are expecting that state will baby sit their children.
Porn does harm some people, as it's easy to get addicted to it, and there's a lot of bad things happening on the supply side of it. I'm sure porn has also changed how people behave and what people expect in relationships, but it's hard to study such things. The amount of sex we have has decreased recently. I don't know if it's due to porn, but it'd be worth studying. If sexual satisfaction is easily available, there's less reason to seek the real thing.
It's beyond parents to fix these things, at best they can delay the discovery of porn for a few years, but that doesn't fix anything.
You don't like stuff other people enjoy and then you will go out of your way with ludicrous excuses to destroy it for others. Like a religious bigot.
This is just an anecdote with no way to verify it or the cause.
If you absolutely must have a barrier to entry, let it be a credit card or other form of payment (everyone likes free porn, but sex work is real work and deserves to be paid). It's something not a lot of kids have access to (a bank account) and you don't have to track people's identities anymore. (Kids can steal their parents' cards but that's on the parents.)
This absolutely is a real problem, especially for younger kids. Have you talked to a teacher? Think things like "a kindergartner runs around grabbing teachers' tits and saying "I want to ..." lines you'd expect from a rape work like 50 Shades of Gray. It is neither in the child's interest nor in the interest of society at large to let that happen. And for every case that's as obviously bad as that one, who knows how many come off as creeps or even manage to appear normal from the outside, while suffering the trauma internally?
Remember, the status quo on the Internet is no control at all. Real-world sex businesses aren't allowed to get away with that, why should the Internet be exempt from laws? Just because the government is slow and incompetent to get started doesn't mean we can stick with "self-regulate, aka no regulation at all".
We can argue about exactly what the law should be, and we can argue how it should be implemented, but there absolutely must be something.