Then the sane thing to do is to boycott that AI provider as well.
Opposing all AI companies tied to the war industry is a pretty vanilla principles stance, which also makes sense rationally if you want to "minimize harm".