Should demonstrations against COVID-19 measures have been allowed in 2020?

At some point in time in 2020 in some countries, anti-COVID-19 protests were banned as part of bans on gatherings. Should they have been so banned or should they have been exempted from the bans?

Search terms: rights of assembly during COVID-19

Pro

 * The right to demonstrate against government policies is an essential political freedom that must not be curbed even in the times of a pandemic.
 * Since Black Lives Matter demonstrations were allowed (or de facto allowed), demonstrations against COVID-19 measures also ought to have been allowed, for consistency's sake.

Con

 * Such demonstrations threaten to reduce the effectiveness of COVID-19 suppression or mitigations policies/measures, resulting in considerable otherwise avoidable loss of life.
 * A protest can be organized in a way that maintains social distancing (minimum distance between protest participants), and thus, does not threaten to impair the effectiveness of the measures.
 * Expanding on the above, as an alternative to physical protest, citizens should be able to create petitions online, where the chance of infection is zero.
 * Online petitions are an inferior substitute as they do not afford the social benefits of a physical, in-person event or organization. They do not facilitate social transmission or social cohesion to nearly the same extent, for example the discussion of dissenting opinions, the further organization of activism, and so forth. Nor can these natural and essential social processes be easily replaced by online discussions, which are often strictly moderated or otherwise manipulated by people who have ulterior motives.