Those are a couple of pretty shitty interviews to be sure. I'm curious how many interview you've had for dev positions and if they're all bad like that with these being the worst examples, or if they're the only good examples.
What I'm trying to get at is that if it was 2/10 interviews were horrible like this then that's regrettable but not indicative of highly institutionalized sexism. If it's more like 8/10 interviews then I would think it is. Obviously we can't draw any rigorous conclusions from a single person's experience but I'm curious nonetheless.
Part of the reason I'm even asking is because I don't see a lot of sexism in the tech circles I travel in, but I also don't go anywhere near "brogrammer" type gatherings either. Based on the absence of sexism I see on a regular basis I'd like to believe the best in people in general.