mar-vel was a critical character in jim starlin's cosmic universe, which gave birth to thanos. he was a male character in that inception. i would argue that when mar-vel sacrificed himself to smash the cosmic cube, it was the definitive end of thanos. although, comics being comics, he came back over and over again
Mar-vell and Carol Danvers are two separate characters. Jude Law is most likely playing Mar-vell in the Captain Marvel movie though he won’t confirm or deny it. The Captain Marvel mantle gets passed to Carol Danvers at some point in this movie.