The Sixers rode Tyrese Maxey and Joel Embiid to a comeback victory at home thanks to a layup from Philadelphia's star guard with one second remaining in the game.