https://www.tofugu.com/japan/bushido/
Article discusses the difference between historical Japan, with the story published in English.
Interesting article.
I've long thought the later over-romanticism about Bushido paralleled the over-romanticism of equivalent western feudal warlords (i.e. "knights"). More so in recent decades.
When you read historical accounts of events they often don't match the romanticized view of some universal code of honor, in practice, on such things.
That Bushido wasn't really a thing until it was later philosophically concocted long after the fact, doesn't surprise me. It's often been the same regarding warrior classes of antiquity around the world. Warlords will be warlords.
I think the more pragmatic historical realities are more interesting anyway.
Samurai would change sides easily as long as they think it benefits them. There are many many examples. O0