Mandatory minimums, if they offend section 12 of the charter, have been struck down by the courts. Really, what courts are saying is that they are well positioned to sentence an accused...or sentence them to a proportional sentence. They have the necessary experience to do that. Mandatory minimums remove that discretion from judges.
On March 8th, 2023. See this statement in context.