I am also not sure the world is quite as discriminatory as you paint it as. I'm over 40. I'm a woman. It's a mixed bag; most places I interviewed during my last job search were very normal about everything. One place rejected me because I "can't thrive in a high-ambiguity environment" and I'm just like ... the interview consisted only of leetcode questions with one right answer, that I got right, so ... just say "our investors are all Republicans and I don't think we should be hiring trans people, yeah we clocked you btw." But it's honestly a lot more rare than I had expected going into it.
I don't really know what's going on with tech right now, or what the future looks like, but despite AI, despite not being fresh out of school, it all feels pretty normal to me. The ZIRP days seemed about the same as things feel now. What's changed is I can ask Claude "what would this crazy design look like?" read it, run it, and say "ewww, no, yeah I knew that would be terrible" without investing the week to write it myself. I am not sure that spells the end of our field.