The difference is that Stark and Strange had arrogance that was a character flaw.
All heroes in the Marvel universe (comic and cinematic) are intended to have flaws proportional to the strength of their power. Only by overcoming these flaws can they become the heroes they need to be.
In her movie, Captain Marvel’s arrogance was not intended to be a flaw, but some how a strength… and that just doesn’t work.