In general the Halacha states 3 types of Kiddush Hashem.
1) Given up ones life for a mitzvah that’s expected of you to give your life for
2) Doing a mitzvah for pure reasons (even privately)
3) Doing a special mitzvah publicly and acting לפנים משורת הדין
A Jewish girl becoming a city council women and a Rav speaking against vaccinations may be nice/ugly to the general public but they don’t fit into the category kiddush/chillul Hashem.