The best comparison and contrast between a pediatrician and an obstetrician is:
A pediatrician identifies, analyzes, treats, and prevents illnesses/injuries in children, while an obstetrician treats and works with patients who are pregnant or going through childbirth.
This statement accurately describes the primary focus of each specialty: pediatricians work with children and their health, while obstetricians focus on pregnancy and childbirth.