Getting locked in a defensive duel with Washington is not usually a recipe for success.

Pac-12 men’s standings Team Conf. All Washington 14-2 23-6 Arizona State 11-6 20-9 Oregon State 9-7 17-11 UCLA 9-7 16-13 Utah 9-7 15-13 USC 8-8 15-14 Colorado 8-8 17-11 Oregon 8-8 17-12 Stanford 8-9 15-14 Arizona 8-9 17-13 Washington St. 4-12 11-18 Cal 2-15 7-22

Read More

Stanford matched defensive licks with the Pac-12’s regular-season champion and top defensive team, Washington, on Sunday and came out with the short end, 62-61, at Maples Pavilion.

Jaylen Nowell hit two clutch baskets in the final 90 seconds, including the decisive one with 29 seconds left, as the No. 25 Huskies won a game that had 17 lead changes.

Nowell missed the front end of a 1-and-1 with 10 seconds left, but Stanford’s KZ Okpala missed a 3-point try at the buzzer.

“We were in a great spot: 10 seconds left to go full court with a broken defense with the ball in KZ’s hands,” Stanford head coach Jerod Haase said. “All those things were what I wanted. I would have preferred that we attacked the rim. … That’s my job as a coach to make sure we do that.”

He didn’t have a timeout left but said he wouldn’t have used one in any case. “We wanted to get out in transition and try to attack them before they were set up in their zone,” Haase said.

Stanford was without point guard Daejon Davis, who injured his left foot against Washington State on Thursday night.

The Cardinal (15-14, 8-9) hurt themselves with 19 turnovers against UW’s vaunted zone defense.

“We didn’t lose the game in the last possession we had there,” forward Oscar da Silva said. “Too many turnovers, I would say. They did a good job playing their zone, closing the passing lanes, taking the passes away. We didn’t get enough shots, and we didn’t get enough stops in the defensive end.”

Josh Sharma led Stanford with 16 points and 14 rebounds. “Obviously, not having Daejon on the court hurt us,” he said.

Sharma, who also had four blocks and two steals, will play his final regular-season game at Maples Pavilion on Thursday night when the Cardinal host Cal.

Haase made it clear that he expects the players to give it their all to win that one for their senior center.

“I want the guys to understand that (for) the coaches, the players, the managers, the trainers, anybody associated with the program, it will be demanded that we do anything possible to make sure Josh goes out the right way. He means a great deal to the program, and we’re going to compete for him.”

Da Silva had 15 points and Cormac Ryan 13. Okpala was held to six points, making just 2 of 8 foul shots. Nowell had 13 and Noah Dickerson 12 for the Huskies (23-6, 14-2), who rebounded from their 76-73 upset loss to Cal on Thursday.

“After losing to Cal, we saw that the sky’s not falling, but we have to get back to what we do, and that’s defense,” UW head coach Mike Hopkins said. “… And that’s what we hang our hat on.”

Tom FitzGerald is a San Francisco Chronicle staff writer. Email: tfitzgerald@sfchronicle.com Twitter: @tomgfitzgerald