You know the rules of program optimization? (#1 Don't #2 (for experts only) Don't yet). I suspect that illustrates the issue that experts are having here. Yes, in any program there are optimizations to be done that can change margins that matter. But without deeper experience even the average practitioner is unlikely to have good judgment about this. So the experts have to balance the effectiveness of higher-resolution explanations where details will get lost in translation (likely degrading any marginal gains to be had) with a low-resolution blanket rule that sacrifices potential gains for an acceptable average.
Several kinds of masks appear to be several degrees of marginally effective, but it's probably very difficult to give this guidance to the public without some segment of it hearing "I need N95 masks" and scrambling after supply, because "Any mask might be helpful to get me to be conscientious about touching my face and provide a marginal droplet barrier, N95s are for people spending time with the sick" is a higher resolution message that's subject to a lot of social/individual entropy.
If there is indeed a scarcity of masks, isn't this question a no brainer? Of course the masks should be allocated to hospital workers, who are exposed to coronavirus for 8+ hours a day, rather than everyone else, who might only come in contact with the coronavirus some part of the day, if at all.
Also, if there's a scarcity of masks, is there a reason why existing supplies (eg. in warehouses) or incoming shippments can't be commandeered/seized by the government under eminent domain?