Mar-Vell went toe to toe with Thanos multiple times in the comics. Their power levels are consistently shown to be at least equal, so Captain Marvell should be able to do the same. She has all of Mar-Vell’s powers. But yes, it definitely depends on the writer. Hell, Squirrel Girl beat Thanos one on one in a comic.