The model you are talking about was basically how things worked in the 1970s. Technology has improved a lot over the last half century.
Autonomous optically guided missiles/drones would fare better, but those are still vulnerable to being blinded by laser systems like HELIOS[0], and of course being shot down by anti air missiles or CIWS.
[0]: https://en.wikipedia.org/wiki/High_Energy_Laser_with_Integra...