I graduated in 2018 and 50% of the exams I see are medical. More medical exams are where I see optometry. I've worked with ophthalmologists in my short career and every MD I've worked with has their schedules PACKED. 30-40 and even up to 100 patients a DAY (those retina guys are nuts!). More than ever do the healthcare system need ODs to perform more of the primary eye care. I have been able to stay employed full time even during this pandemic. Some other ODs are not as fortunate. It just depends where you work.
But the future of optometry is pretty secured in my opinion. As in, I do not feel threatened to be replaced by these so call robots.
Hope this puts it into another prespective.