There are other factors that influence the choice of an antibiotic. These include:
How severe the infection is.
Dosing schedule.
Other medications you may be taking.
Common side-effects.
A history of having an allergy to a certain type of antibiotic.
If you are pregnant or breast-feeding.