In Canada pharmacists will generally just ignore brand names written by MDs and fill with generics unless there’s a known difference or the patient specifically asks (and is willing to pay more).
Unless the prescription is marked as “do not substitute” pharmacists generally have the discretion to substitute for a generic, in fact a few states require it.