Just pull yourself up by your bootstraps, print off 50 paper resumes and go knock on those software company doors. Put on a nice suit and stay curious and you'll have a job in no time!
Your premise is nonsense. There are 10 competent people for 10 jobs that require 10 competent people. The other 8 you speak of were phoning it in. At various points in history, they were able to milk the nipples of prosperity overriding common sense. But at some point, the weakly efficient market outed them and disposed of them as they discovered all of this has happened before and all of this will happen again.
You hate this? That's on you. But doing the same thing over and over and expecting a different result is insanity. However, if you saved up before you were outed as an imposter, I can see that working out in the long run. IDIC and all that.
That has nothing to do with AI but it makes a great scapegoat. Companies overhire regularly to show growth and then lay off the overhired as cannon fodder when they need to tighten their belts. Piranha equity has one job, juice every drop out of the fruit then discard the husk.
Because I don't believe that's where it goes. That's certainly the attitude of the same people who spout their personal p(doom) based on solely their feels, but my feels, which are just as valid as your feels or anyone else's feels says AI opens new opportunities and new jobs that the next generation growing up with the technology will embrace. Probably ought to tax billionaire wealth and establish an automation tax before that, but we probably won't.
Only time will tell, but I reject your pessimism on this. And I say that as a major cynic and pessimist on human nature. Shun! Shun! Shun the unbeliever in p(doom)!