I'm less certain than you are that good online education resources for K-12 would also mean the end of teacher jobs.
The anecdote about bank teller jobs and ATMs comes to mind - https://www.aei.org/publication/what-atms-bank-tellers-rise-...
Not saying that teacher jobs are likely to increase, just that I'm not sure they'd go away altogether, either.