Add into this that the whole point of Marvel just one shotting this guy is just to pull a weird flex on the villain, like "I don't have to fight your way" thing. The problem is it just deflates the encounter and makes all the posturing about how she's relying on her powers too much a complete flat plot line. It feels like a buildup and then it just goes no where. It's a pointless plot element that is introduced early in the movie, completely forgotten about, and then suddenly remembered just to end up being pointless.It's actually a little worse than that in context.
See, this isn't just the main villain; he's also supposed to be her teacher. And throughout the film, one reoccurring aspect between them is that Jude Law always bests Captain Mehvel in physical combat, causing Meh to always fall back on her powers to win. Jude Law warns her multiple times that this is a terrible tactic in the long run as it's basically her using her powers as a crutch, that she's way too impatient as a fighter and that she should learn more self control instead.
If this were a normal movie, that would be the lead-in for Captain Marvel to learn this lesson over the course of the movie and thus able to best Jude Law. Instead not only does Meh give us a lackluster anti-climax, but she accidentally prove Jude Law right in that she's nothing without her powers.
Kinda also explains why Dobson's so adamant about defending her: they're both lazy and complacent where they heavily rely on "innate" talent rather than improving themselves.
In other words, it's bad writing.
In the Indiana Jones movie this is a single scene, without a plot line tied into it, that is used as a comedic way of demonstrating an element of Indy's personality. It is simple and funny without deflating a major villain or destroying a plot line that the writers had forgotten they'd written.
In other words, it's good writing.