IMO Bochy made a huge mistake there.
Hanigan also hits lefties very well and is a high contact hitter.
Stubbs is no guaranteed out against lefties, but he Ks so much.
And the pitcher follows him.
Very big mistake by Bochy there, he just massively underestimated Hanigan's ability to make good contact.