What is the first choice of medication for Pneumocystis carinii pneumonia? by Specialist The drug of choice for Pneumocystis pneumonia is cotrimoxazole, and if cotrimoxazole is poorly treated, other drugs such as pentazocine and aminophenazone may be chosen.