Honestly that wouldn't be a bad idea. Even if few people ever code themselves, learning a little logic is good for anyone.
The problem is the tech companies didn't actually deliver on the promise. We didn't hand kids devices that encouraged tinkering and discovery. We handed them locked-down iPads suitable only for content consumption, not knowledge creation.
I have a background in education. I've had a unique career that's gone back and forth between engineering and education. I hold graduate degrees in both. I say this only as prologue.
While I agree with most of what you wrote, this part sticks out to me. I think the missing piece in your analysis is the human element, human neurology. The literature that's been coming out in the years since devices were widely deployed has been pretty damning. It's not just that the devices are distraction machines, though they certainly are that. It is that they are fundamentally, neurologically inferior methods of educating a student. It is not simply that computers are distraction engines. You can put two learners in completely distraction free environments, and ask one to learn on a tablet, and one with pencil and paper. Even with no distractions at all, the paper will be far superior.
We are physical embodied beings. A lot of tech folks like to think of themselves as some sort of disembodied soul piloting a meat robot, but that isn't remotely how humans actually work. The body is just as much part of learning as the mind. Your mind is part of your body; and your body heavily influences your mind. Even your gut bacteria have an immense impact on your thought processes. Learning is not a passive process of absorbing information like a sponge. It requires active practice and synthesis, and the more modalities that experience occurs in, the better.
Here is how a traditional lecture works:
Here is how an electronic lecture works:
This is a fundamental problem with the technology. Again, we're embodied creatures. Writing with a pen and paper is more of a full body experience than using a touch screen can ever be. Tech loves to "remove friction," but friction is the only way you ever actually learn anything.
We need to get the computers out of regular classroom instruction entirely. I'm perfectly fine with computers in a lab or library where students take computer-intensive courses (like programming or CAD), but there should be zero electronic devices employed in the lessons of core academic subjects such as mathematics, language, the sciences, and social sciences.