The problem with Anakin is he has no agency.
The Jedi didn't teach him right.
Palpatine trapped him.
Padme made him afraid.
Obi-Wan should have taught him better.
Mace taught him wrong.
Zero agency.
I think he has more agency than you're giving him credit for.
Nobody forced him to murder a whole village of Tuskens. One could argue temporary insanity, but he then utterly fails to report his actions to the council, and surrender himself to face justice for his unspeakable crimes. That's a choice. He chose to remain a Jedi because he likes to feel powerful and important.
Nobody forced him to flagrantly violate Jedi rules and get married, let alone making others complicit in the deception so he gets to maintain a position of privilege. He could have left the order, married Padme, and the Order wouldn't have stopped him. He chose to have a wife AND remain a Jedi. It wasn't about what was right or just, it was about what he wanted for himself. Again, he chose power and prestige.
Palpatine may have whispered in his ear, suggested, or even gaslit from time to time, but he never forced Anakin to do *anything*. He could have saved Windu and ended Palaptine right then and there. He chose the opposite because he wanted to keep Padme. Nevermind the fact that if Padme have been given the choice, she wouldn't have hesitated to sacrifice her life to bring an end to tyranny. That was entirely Anakin's choice, and he again chose the selfish option. It have nothing to do with Padme's welfare and everything to do with his own possessive wants and needs.
I don't see how Obi-Wan is responsible for any of this. He taught Anakin all he needed to be a Jedi, but you can't teach a person to be selfless if they don't want to be. Ultimately, Anakin could not and would not let go of the things he thought should be his.
This selfish tendency even extends into his relationship with Ahsoka. The way he talks about her after she leaves, you'd think she deliberately did so to spite him. He talks about
her letting
him down. Then what she comes back, he hands her sabres back to her (about as personal a possession as any Jedi could have), only for her to find that he's gone and altered them to reflect himself; changed the blades to show *his* colour. That's a choice, and whether he consciously understands the underlying motivation or not, he chose to mark Ahsoka (in her absence) as "his".
As for Windu; he clearly had his own flaws, but not teaching Anakin well enough is hardly one of them. For starters he's not his Padawan and so that's not his responsibility. For another thing; he's proven right about Anakin in the long run. He was too old to be trained, and he proved he was not trustworthy.
Plus of course there's the most important decision ever made; to sacrifice his life to save his son, and free the galaxy in the process. Finally; a selfless choice. So yeah; agency abounds!
