WACO, Texas -- Udoka Azubuike and No. 3 Kansas returned the favor in a Big 12 showdown that lived up to the hype.
The Jayhawks share the Big 12 lead again and could return to the No. 1 spot in the AP poll as well.
Azubuike had 23 points and a career-high 19 rebounds in a 64-61 win Saturday at Baylor, ending the Bears' 23-game winning streak and likely ending the Bears' five-week run as the nation's No. 1 team.
The Bears are the sixth No. 1 team to lose this season. Their streak ends with one more win than Kansas -- which won 22 straight in 1996-97, the Big 12's inaugural season.
"You could just feel the buzz. It was an exciting time and a huge win," Jayhawks guard Devon Dotson said. "We're a solid team that can make a run in late, late March. ... We're going to enjoy this win but build off it for sure."
Kansas (24-3, 13-1 in Big 12) has won 12 in a row since its first-ever home loss to Baylor on Jan. 11. The Jayhawks had a 10-point lead with 6½ minutes left in the rematch before holding off Baylor's late charge.
"I liked the first game against Kansas better than this one," Baylor coach Scott Drew said. "For us, the goal at the beginning of the year wasn't to sweep Kansas. The goal was to win a Big 12 championship. Their goal is to win a Big 12 championship."
Baylor (24-2, 13-1) has never won a Big 12 title. There are four games left in the regular season. If both teams finish 17-1 in the conference, a random draw will determine who the No. 1 seed is in the Big 12 tournament.
Isaiah Moss, who had 11 points, made two free throws for Kansas with 7.9 seconds left before a timeout. The Bears had one more shot, but Jared Butler's 3-pointer from beyond the top of the key ricocheted off the front of the iron as time expired.
Butler and MaCio Teague had hit consecutive 3-pointers in the final half minute to get Baylor within 62-61.
Dotson added 13 points for the Jayhawks, who shot 51% (27 of 53) against a tenacious Baylor defense that held them to 55 points in a 12-point loss last month, which ended their 28-game home winning streak.
"It meant a lot to our guys, a lot more than the league race," Kansas coach Bill Self said. "It meant a lot to us from they beat us the first time at home, and they controlled it. They controlled the game at home a lot more than we controlled the game here."
The sellout crowd of 10,627 at the Ferrell Center, which included 2011 Heisman Trophy winner Robert Griffin III and Waco favorites Chip and Joanna Gaines, was already in a frenzy after ESPN's College GameDay broadcast on the court leading up to the late-morning tip.
Fans were roaring after Teague, who missed the previous two games with a wrist injury, returned to the lineup by swishing a 3-pointer on the game's first shot and Gillespie made it 5-0.
But Marcus Garrett then had seven points in a 14-2 spurt for Kansas, which never trailed again. Baylor hadn't been behind by more than two points in any of its previous 12 home games.
The Bears trailed 14-7 before Butler hit a 3-pointer and then had a long pass ahead to Mayer for a layup as the lanky, high-energy sophomore scored eight points in two minutes before Kansas went ahead to stay with six points in a row.
That quick Jayhawks spurt including two baskets by Azubuike, who later in the half had back-to-back impressive dunks for nine-point leads.
Azubuike bowed back his shoulders and let out a shout after his powerful slam over the 6-foot-9 Gillespie. The Jayhawks' next basket was also a powerful dunk by Azubuike that made it 32-23. He finished 11-of-13 shooting, with at least seven dunks and other inside shots.
"He was great. They did such a great job winning the first time because we had nothing from a scheme standpoint to help him, and today we were able to fill the ball over the top quite a bit," Self said. "That's about as well overall as I've seen him play. He was terrific."
Six weeks earlier against Baylor, Azubuike had six points with 11 rebounds.
"The guy can play basketball. The dude can rebound, finishes at the rim, and he does it really well," Gillespie said. "I think our first game we did a better job as a team keeping him out of his rhythm. This game he was in sync."
The Associated Press contributed to this report.