{I would say}: Which antibiotic works best against what type of infection – you need to have that knowledge under your belt.
I myself would use the combination of "which" and "what" in this instance, but do I actually need to use the same interrogative pronouns:
Which antibiotic works best against which type of infection – you need to have that knowledge under your belt.
{or}: What antibiotic works best against what type of infection – you need to have that knowledge under your belt.
These two both sound odd to my ears. I think that the interrogative pronoun "which" usually applies to a narrower range of choices than "what" indicates. Here the number of types of infections that I have in mind is quite large, so "what type of infection" seems a better fit.
And then, we go on to consider which antibiotic we should choose from several different (rather limited) options against a given infection.
Of course, in an instance like "I can't tell which is which", the two "which"s are the choice by default.