The whole Sol/twins thing IMO made no sense.
I do not believe it was ever intended to make sense.
The only way to write the Jedi to rebalance any conflict to truly make them in potential peril ( Look at how much power they have compared to so many others ...) is to take their "code" and make it unworkable with how the "universe" operates around them. Effectively slow death by blinded dogma. Is that always well executed? No. I'd say George Lucas screwed that up royally in the Prequel Trilogy.
You cannot have a large organization that consistently operates out of congruence to how the rest of the "universe" conducts itself and expect it to survive.
How could a functional writers' room handle this? Or at least patch it over?
1) You have to emphasize that just because someone is born with incredibly natural gifts ( Lucas absolutely dragged his lore through the mud with the entire midi-clorians debacle) , it doesn't mean they are capable or competent otherwise. Look at LeBron James. Won the genetic lottery for being a high level professional athlete. But has the common sense of an old soggy tuna sandwich. You can be naturally talented but still be an unforgivable moron. Current Star Wars just isn't willing to go there, but it should. ( And now the current casting mandates makes that impossible now. The backlash would be non stop if you rolled out certain demographics as "born ready" on paper but operate with a 10 cent level approximation of basic common sense. ) We never really get the struggles and sacrifices made to be a Jedi in the Jedi Order. If we did, if we got extensive character building coverage, the audience would be more sympathetic to the failures inherent in applying this "code"
2) You have to make "non viables" as disposable. In effect, if you are not chosen, but you have some Force ability that can one day be used to harm others or the Jedi Order, then the safest bet is to execute you. If Sol was in a position where he had to execute one twin and not the other, how does that work out? If Qui Gonn is faced with training Anakin or being forced to cut his head off, how does that play out? What about Obi Wan? His master is dead. His master's last wish is to train Anakin. He wants to honor that, but he knows Anakin is a walking ticking time bomb, but will he go so far as to kill him...That's the most simple "patch over" you'll get from a writers' room looking to make the situation efficient and compact in the storytelling to build natural conflict.
But Lucas didn't have the guts to go there ( Hard to sell all those toys that way. ) And The Big Mouse will never ever go there. (They'll push a lot of ugly stuff forward, but never a concept actually in line with what has happened across recorded human history) The benefit of a legacy IP, a storied one, is you have a built in audience. A lot of the heavy lifting in world building is done for you. The problem is it immediately corners you from a writing standpoint. Did Headland faceplant here? Yes. But, to be fair, she had to operate starting from a corner. She chose that, but I won't pretend it's easy.
Someone is going to ask me now, to clarify that what I'm saying is one of the most efficient ways to fix a lot of the current Star Wars lore problems is to have children, albeit marginally Force sensitive ones, being executed on screen.
Yes. That bother anyone? That's the irony of the entire matter, good writing in film and TV is supposed to bother you on multiple levels. Sometimes even offend you. What it can't do is bore you.