The difficulty in writing DC characters is not that they're too goofy, but that they're too strong.
Superman's power is to do anything that the plot requires, essentially. Writer are fond of pulling new powers out of their assess. But even if you limit him to the basics of flight super-speed, super-strength, and invulnerability, you can't challenge him.
Thor has the power of a god. The Hulk has no upper limit on his physical strength.
Green Lantern can literally do anything, limited only by his willpower and imagination.
Much the same is true of Dr. Strange.
When it comes to superpowers and basic character types, DC and Marvel have been drawing from pretty much the same well for decades. There's not that great a distinction in that respect. The key difference is in the personalities. Marvel characters -- at least in the Stan Lee era -- tend to have more human fallibility, more personal hangups, more vulnerabilities built into their natures. Captain America is the ultimate clean-cut hero, but he's a man out of time struggling to adjust. The Hulk has unlimited power but no control, making him potentially as much villain as hero. Iron Man has unlimited technology, but would die without it. The X-Men can save the world, but that world finds their very existence threatening or intolerable. And so on. What makes Marvel's characters distinct from DC's is that their Achilles heels aren't a radioactive rock or a particular color of the spectrum, but are either personal hangups or intrinsic downsides of the very things that make them heroes.
So it's not about how strong the characters are or what their powers are like. It's about how they're portrayed as people, how fallible and relatable they are. No matter how much power they have, the key is to find a way to challenge them on a personal level, an emotional level.