For pretty much all of literary history men have been portrayed as flawless virtues of manly awesomeness while women have been plot devices, sexualized, targets and put in fridges. That those tropes have largely reversed in just the last few (of the last 6500) years should be accepted.
Not by the good writers. Especially when the rise of the anti-hero became a thing. Starting I would say in the late 60's and taking off big in the 70's. Going away somewhat during the Reagan 80's, making a comeback in the 90's at least in art and independent movies and exploding during the post Sopranos golden age of tv and now going away again as everything becomes Disneyfied and PC out of fear of offending anyone.
But this stuff tends to cycle so things will likely get better in future. Especially since I think tv and movies are becoming less popular to the internet meaning movies and tv will soon be niche thing enjoyed mostly by older people. Once older people become the main demographic again you will see more challenging stuff IMO on a regular basis.