Background: Pertussis has re-emerged in Europe since late 2023, representing a major public health concern and a significant cause of morbidity and mortality among infants. Macrolide antibiotics clarithromycin and azithromycin are recommended as first-line therapy; however, their comparative efficacy in infants remain poorly characterized. Methods: We conducted a multicenter retrospective cohort study emulating a target trial to assess the real-world effectiveness of macrolide therapy in infants hospitalized for pertussis across eleven Italian centres between November 2023 and December 2024. Infants received either azithromycin or clarithromycin according to clinical judgment. The primary outcome was a severe disease course, defined as a Pertussis Severity Score (PSS) >5. Secondary outcomes included intensive care unit (ICU) admission, need for oxygen therapy, complications, length of stay, 30-day readmission, and mortality. Confounding was addressed using propensity score methods with overlap weighting. Findings: Among 194 infants included (89 males [45·9%], median age 3 months [IQR 1·5–4·0]), 145 (74·7%) received clarithromycin and 49 (25·3%) received azithromycin. Baseline characteristics and disease severity at admission were comparable between groups, and no antibiotic-related adverse events were observed. In propensity score–weighted analyses, azithromycin was associated with a higher risk of severe disease compared with clarithromycin (PSS >5: 61·2% vs 33·1%; odds ratio [OR] 1·80, 95% CI 1·04–3·34), and with an increased need for oxygen therapy (42·9% vs 17·9%; OR 1·95, 95% CI 1·07–3·53). Severe complications were more frequent in azithromycin group (14·3% vs 2·1%; p=0·021), as ICU admission (24·5% vs 0·7%; p=0·032). Two deaths occurred, both in the azithromycin group. Covariate-adjusted sensitivity analyses yielded consistent and more pronounced associations. Interpretation: In this observational study emulating a target trial, clarithromycin was associated with more favorable clinical outcomes than azithromycin among infants hospitalized with pertussis. Large prospective randomized trials are warranted to confirm these observations and better guide clinical recommendations.