Asked for male, 35years old from Srikakulam
firstly if you are self-medicating, you shouldn't. You need to see a doctor for a severe cough.
Secondly, to answer your question. Both are antibiotics and their use depends on physicians choice for the particular condition the patient is suffering from.