This is an interesting point. Could AV become obsolete in the future, provided the security of OSes becomes good enough?
Sounds almost crazy but I agree as I saw some 17y.o. students I taught who created a simple, autoupdating undetected .exe trojan in autohotkey in an evening or so.
https://movietvtechgeeks.com/microsoft-antivirus-cant-defend...
Basically as a evolution of MinWin, there is now a micro-kernel for security critical code sandboxed via HyperV.