Joel Embiid scored 40 for the first time in nearly two years and the Sixers did just enough to beat the Pelicans.