That's extremely optimistic.
If you let a random kid loose on the Internet, they will probably find propaganda / political / incel / gaming / porn / alt-right bullshit, because that is simply what the majority of the Internet is. I remember folks doing experiments back at Google in the '00s where they set a user-agent loose to follow links at random on the web, and the result was that you always ended up back at porn. Kids need some form of guidance to say "This is worth pursuing, this is not worth pursuing", and for a gifted kid, it needs to be someone who can personalize this guidance to their own interests. An involved parent can do that, but a teacher who is literally trying to keep their 30 other students from killing each other cannot.
I think that kids who got those tend not to realize both how important and how non-universal these are.
I grew up the child of an elementary school teacher and a househusband (formerly a nuclear chemist), and didn't have a whole lot of money but did have a whole lot of curiosity. Taught myself to program and a whole bunch of other things. For most of my teens and twenties I was very much like "Anyone can do what I did - all it took was a public library card, Internet access, and a lot of time spent reading and tinkering."
But then as I grew up I met lots of other people who were gifted too, sometimes very much so, sometimes with a lot more financial resources than my family had. But they lacked the "love, attention, and free time" part. What'd happen is that their brain wouldn't let them focus on anything long enough to really master it or apply it effectively. They'd be off chasing the void that the lack of love left in them, often in extremely self-destructive ways. Many of them are dead now.
We all need the "love and attention" part, but it functions at such a subconscious level that people who have it just assume that everybody else does too, while those who don't keep seeking it, oftentimes in ways that won't build anything durable for themselves, to the detriment of everything else in their life.
There are a lot of reasons a kid may be struggling in school and it doesn't mean they are dumb or their future is worthless, as your hypothetical kids shows. I live in an area with one of the top public schools in America, they have a well funded gifted program. I know several parents whose dyslexic children are not getting the support they need.