That's not smart by Toyota (unless they own a very small stake), is it? Mazda competing with Toyota is indeed bad for Toyota but it's also bad for all the other auto manufacturers too. The benefit of that competition goes exclusively to Toyota (among other shareholders) but the cost is shared among all automakers roughly in proportion to their EV market share.