killing bacteria alone isnt a problem. Killing bacteria while keeping a human alive starts to complicate the problem. Killing certain bacteria while keeping a human and the rest of said humans helpful bacteria alive but not resistant to anti-bodies, is a whole different ballgame...
You'd think this was "Captain Obvious", but this is genuinely a challenge for some bacterial infections. Its even worse for fungal infections, as fungi are eukaryotic and thus share a alarming number of potential drug targets with human cells.