In Avengers: Endgame, Carol Danvers was used sparingly, in large part because she was powerful enough to almost single-handedly defeat the enemy they couldn't. In a way, she's Marvel Studios' Superman, meaning drastically overpowered in such a way it's difficult to create an antagonist that can threaten her life. Yet, as the short runtime of The Marvels proves, Carol Danvers being so overpowered is an asset to the Marvel Cinematic Universe. Superhero fans still expect awesome displays of power, but they also want more from these films in terms of storytelling.
Source:https://www.cbr.com/the-marvels-carol-danvers-overpowered-benefit-mcu/