Text this: Comparison of AI and resident doctors in diagnosing and managing acute respiratory cases: a retrospective study