I think Lucas himself kind of debunked that. He said that Yoda couldn’t really have done anything different. He was just manipulated into a no-win situation.
Yes, because Lucas has a fetish for the Jedi, so the Jedi can’t be wrong and saint Yoda is always right, especially when… well… he tells you to just do nothing but be happy when people around you dies.
Not saying I agree with Lucas. Just saying it wasn’t an intentional character arc.