DeMatha product Hunter Dickinson dropped a career-high 26 points for the Wolverines.
"It's actually probably the best thing that has happened to us."
Eric Ayala scored 17 points as the Terps knocked off a top-10 opponent for the first time since 2016.
Bernhardt notched 20 goals and nine assists in six games last season.
"I think it's going to be different every night with this team."
Donta Scott keyed the comeback attempt with 15 second-half points.
The Terps are set to play on the holiday for just the second time in program history.
The Terps shot 34 percent from the field in the loss.
Ron Harper Jr., Jacob Young and Montez Mathis each average 16 or more points per game for the Scarlet Knights.
"They was tougher than us."