Long time geek, fangirl, mother, and reader. I've got a lot to say, you might not like it all, but it will be honest and hopefully helpful.
And they're both great examples of a sexist trope that uses a female lead to tell what is essentially a male story. Giving the appearance of female representation without actually making her a hero of her own story.
Women are not allowed to be great, only to witness to the greatness of men.