For eye infections, both ophthalmologists and optometrists can provide effective treatment, depending on the severity and complexity.