You see, the difference between Ezra Bridger and Anakin Skywalker, despite their similar backgrounds and personalities, is that Ezra has a surrogate family in the Ghost crew, one that will steer him right when he is in the wrong and encourage him when he is in the right. Anakin...was often given the cold shoulder by most of the Council, Obi-Wan wasn't really emotionally supportive, and he had to keep everything a secret, especially his marriage, which enabled Palpatine to prey on him. Besides, Ezra really didn't fly into a psychotic rage when he learned of his parents' deaths- Anakin did. This was due to him being able to confide in and being comforted by Kanan. Obi-Wan would have spouted some Jedi Code drivel which would not have helped at all.