Upset with himself, Mayo went to the bench, where coach Jason Kidd told him to shake off his mistake. Kidd then drew up a pair of plays for Mayo and put him back in the game.
It paid off. Mayo drained two 3-pointers in the last minute of the fourth quarter, including a contested shot from the corner with 0.5 seconds remaining to send the game to overtime. The Bucks prevailed 113-105, capturing their fifth straight victory.
"You have to give (Mayo) credit. He made an incredible shot," Lakers coach Byron Scott said. "We had two guys right there directly on him."
Knight, who returned to the lineup after missing Monday's game in Toronto with a quadriceps injury, scored 12 points in overtime. Knight made just two of 10 shots through the first three quarters before getting hot late.
Mayo and Khris Middleton added 21 points apiece for the Bucks, marking the first time since 2009 that Milwaukee had four players score more than 20 points in a game.
"We're just grinding," Mayo said. "Even if our energy isn't there, our heart and effort is there. We found a way to get that win tonight."
Boozer's layup with 1:02 remaining in the fourth quarter gave the Lakers a six-point lead. Mayo sank a 3-pointer to cut it to 91-88, but Jeremy Lin connected for a 3 on the next possession for the Lakers. Knight's 3-pointer made it 94-91 with 20.4 seconds left.
A shot-clock violation gave Milwaukee the ball with 7 seconds remaining, setting the stage for Mayo's tying shot.
Knight opened the extra period with a 3-pointer, giving the Bucks the lead for good.
Milwaukee is a season-high five games over .500.
"I think this group is growing pretty fast," Kidd said.
At shootaround earlier in the day, Scott was asked about coaching Kidd with the then-New Jersey Nets. When describing to a Lakers beat reporter how Kidd was regarded, Scott used profanity.
Kidd attempted to downplay the issue before tipoff.
"It's his opinion," Kidd said.
Scott coached the Nets to NBA Finals appearances in 2002 and 2003 with Kidd as the team's leader. Scott was later fired and reports suggested Kidd played a part in his dismissal by going to team management.
"I was just a player, I didn't have the rights of hiring and firing," Kidd said.
Scott insisted there's no rift with Kidd.
"You asked me how I feel about him and I said we aren't going to be spending a whole lot of time together," Scott said. "I don't hold grudges. We all move on."
Scott then praised Kidd's play in New Jersey.
"He should have gotten MVP the first year we went to the Finals. I thought he was the best player in the league and he transformed that organization into a championship-caliber basketball team," Scott said.
Lakers: F Jordan Hill sat out with an injured muscle near his right hip. Scott said Hill isn't likely to return until after the All-Star break. ... Nick Young returned to the lineup after missing Sunday's game against New York with an ankle injury. ... Wesley Johnson injured his right ankle while making a 3-pointer in the second quarter but later returned.
Bucks: Kenyon Martin missed the game with a sore ankle. ... Ersan Ilyasova (groin) and Zaza Pachulia (calf) each remained sidelined for the fourth game in a row. ... Kendall Marshall underwent surgery in New York to repair a right ACL injury sustained in Milwaukee's win over the Knicks in London on Jan. 15.
Lakers: Visit Orlando on Friday.
Bucks: Visit Houston on Friday.
Josh Richardson's best 2020-21 highlights
Check out the Boston Celtics' newest acquisition from the Mavericks in Josh Richardson, who averaged 12.1 points per game in 2020-21.
Cade Cunningham tosses first pitch at Tigers game
Cade Cunningham, the No. 1 pick by the Pistons in the NBA draft, breaks down his delivery after throwing the first pitch at Comerica Park.
NBA trade tracker: Grades and details for every offseason deal in 2021
Which players and picks are on the move? We have a rundown of the latest deals.