Welcome to Healthcaremagic Forum,
If the cough
is dry it could be considered due to Upper respiratory tract
infection caused by viral infection or allergy
, both of which can be combated by either of the medicine you mentioned along with gargling a antiseptic solution to prevent any secondary bacterial infection which is expected in above conditions, as both make throat mucosa sensitive and less resistant to infections.
If the cough is wet , Production of the sputum or gurgling sound during cough then i would consider there is a need for getting examined by a pediatrician
and go for necessary antibiotics.Such kind of presentations are more when there is lower respiratory tract infection which is commonly due to bacterial infection of the lung tissue.Antibiotics ( antibacterials ) are the best and only resort there.
Thanks for visiting Healthcaremagic.com
Take care , bye