Bryant scored 53 points and brought the Los Angeles Lakers back from a late 12-point deficit in regulation, but the Rockets beat them 107-104 in overtime Friday night.
Yao had 39 points and McGrady added 30, enough to overcome Bryant's fifth 50-point outing in the last seven games.
"He's amazing," said Houston's Rafer Alston, who made a pair of free throws with 14 seconds left to cap the scoring.
Rockets coach Jeff Van Gundy said: "I was fine on our defense on Bryant. There's only so much you can do."
Bryant, who had made a dramatic 3-pointer late in regulation to tie the game at 95 and send it into regulation, bounced another shot from beyond the arc off the rim and the Rockets rebounded as the overtime ended.
With Los Angeles trailing 88-76, Bryant took charge, scoring 17 points in the final 4:07 of regulation.
"My shots were going long. I took a few deep breaths and regrouped," said Bryant, who scored 25 of the Lakers' final 28 points and finished 19-for-44 from the field.
Yao intentionally fouled Kwame Brown with 16 seconds remaining in regulation, and Brown missed both free throws. But Bryant got the long rebound off to the left and made a fallaway 3-pointer from the corner to tie it at 95.
McGrady then missed a jumper, with Bryant guarding him, as time ran out in regulation.
Los Angeles was up 104-100 with 1:03 remaining in overtime, but Bryant fouled McGrady beyond the 3-point line and McGrady made three free throws.
"That was a big play for us because we were down four and we were fortunate enough to get three free throws and knock all of them down," McGrady said.
Yao scored on a layup with 23 seconds left, then Alston made the two free throws.
Yao, who had 11 rebounds, went 17-for-21 from the free throw line and 11-for-18 from the floor. McGrady scored 15 points from the line, and had 10 assists. But he was 7-for-24 from the floor.
"Obviously, Tracy was struggling from the floor," Van Gundy said. "Yao came through in a big way."
Alston added 19 points.
Bryant scored 50 or more for the eighth time this season and 19th time in his career. He was coming off a 23-point game in an 88-86 loss to Memphis. He had scored at least 40 in the previous five games, including 50 or more in the first four. He scored 65 in one of those and 60 in another.
Lamar Odom had 16 points and 17 rebounds for the Lakers before fouling out with 15 seconds left in overtime.
Chuck Hayes had 14 rebounds and six points for Houston.
The Rockets were up 75-67 heading into the fourth quarter after leading 53-48 at halftime.
|Kobe Bryant, who nets 53 points on 19-of-44 from the field, hits the game-tying 3-pointer. (Getty Images)|
|Houston (47-26) «||31||22||22||20||12||107|
|L.A. Lakers (38-34)||22||26||19||28||9||104|
|HOU:Y. Ming 39 Pts
HOU:C. Hayes 14 Reb
HOU:T. McGrady 10 Ast
|LAL:K. Bryant 53 Pts
LAL:L. Odom 17 Reb
LAL:L. Odom 4 Ast
|Players of the Game|
Majestic James Harden Rockets Player T-Shirt - Red Shop Now!
|R. Alston, PG||48||6-18||4-4||6||3||4||19|
|S. Battier, SF||46||4-8||0-0||5||3||3||11|
|T. McGrady, SG||44||7-24||15-16||5||10||4||30|
|Y. Ming, C||43||11-18||17-21||11||0||5||39|
|C. Hayes, PF||29||3-7||0-0||14||0||6||6|
|J. Howard, PF||23||0-5||0-0||7||4||1||0|
|K. Snyder, SF||16||1-3||0-0||4||1||3||2|
|D. Mutombo, C||10||0-0||0-0||4||0||3||0|
|J. Lucas, PG||5||0-1||0-0||0||0||0||0|
|B. Sura, PG||Did Not Play|
|B. Wells, SG||Did Not Play|
|J. Tsakalidis, C||Did Not Play|
|V. Spanoulis, PG||Did Not Play|
|L. Head, SG||Did Not Play|
|S. Novak, PF||Did Not Play|
|Complete Box Score|
|K. Bryant, SG||48||19-44||12-14||2||2||2||53|
|L. Odom, SF||48||3-9||10-16||17||4||6||16|
|S. Parker, PG||42||4-7||0-0||8||4||2||10|
|K. Brown, C||40||5-8||5-8||7||1||5||15|
|L. Walton, SF||37||2-6||0-0||2||3||1||4|
|R. Turiaf, PF||22||3-6||0-0||6||0||5||6|
|S. Vujacic, PG||12||0-1||0-0||2||1||1||0|
|S. Williams, PG||11||0-4||0-0||3||1||0||0|
|A. Bynum, C||6||0-3||0-0||0||0||5||0|
|A. McKie, SG||Did Not Play|
|C. Mihm, C||Did Not Play|
|V. Radmanovic, PF||Did Not Play|
|M. Evans, SG||Did Not Play|
|B. Cook, PF||Did Not Play|
|J. Farmar, PG||Did Not Play|
|Complete Box Score|