Dwight's ego doesn't even sniff Kobe's. Kobe and Jordan have the biggest egos in sports history.
Kobe's ego didn't stop him from sacrificing for the good of the team and ultimately didn't stand in his way when it came to the team winning.
Kobe changed his style and sacrificed points to win championships in a style he hated initially.
Dwight refused to run that style for 60+ games of a season to do his own thing, complained about touches when he had the 2nd most in the league in the post, and refused to commit on what he was most effective at, and then bolted when he realized he wasn't good enough to take the team from Kobe.
Kobe and Jordan have gigantic egos but they aren't petty ones like Dwight. Kobe and Jordan's egos come with the confidence of knowing how good they truly are and how hard they work. Dwight's ego has to do with being pampered.