Kobe Bryant scored 35 points in his third-to-last game, but James Harden responded with 40 to lead Houston past the Lakers.