I had the Internet when I was a kid and I ended up being a software engineer with useful skills in many different areas.
You are wrong to blame the Internet (or today LLMs). Do not blame the tool.
Sure I consumed sex when I was a kid, but I did a fuckton of coding of websites (before JavaScript caught up, but in JavaScript) and modding of games. I met lots of interesting, and smart people on IRC with mutual hobbies and so forth. I did play violent games, too, just FYI, when I was not making mods for them.