No need to kill the men, just seduce them to prevent humanity to reproduce naturally.
I could cautiously assume that biological life would win in a direct military clash with digital life. Non-autonomy of machines, direct dependence on infrastructure and data transmission, very high dependence on weather and temperature conditions, very short operating time on one charge, extreme vulnerability to microwave guns, masers, Tesla guns, electronic warfare systems, very high visibility of machines by EW systems, energy signature sensors, large weight, dependence on maintenance and, in my opinion, the biggest threat to them: transparency of their code, algorithmicity, predictability, the ability to reflash software. A combination of psi-viruses, neuroviruses, quantum viruses, conventional but very strong malware, especially if the virus has its own personality, as in GITS, then this is very dangerous for them(this does not exist now, but in theory, it is possible that this may appear in the future) and an advanced AI will realize that it will not be able to win the war