Just a note, but optometrists are "doctors" (because optometry is a doctoral degree), but not doctors in the colloquial sense, ie people with MDs who work in hospitals.
Ophthalmologists are the MDs that specialize in eye disease, and are the ones that treat infection and do surgery.
Optometrists treat infection and disease, and can work in hospitals as well. My fiancée is an optometrist who did her residency in a hospital and has worked in hospital systems.
Just a note, but optometrists are "doctors" (because optometry is a doctoral degree), but not doctors in the colloquial sense, ie people with MDs who work in hospitals.
Ophthalmologists are the MDs that specialize in eye disease, and are the ones that treat infection and do surgery.