Discrimination based on behavior is acceptable, and if it’s based on performance it is usually justifiable.
Vaccination record has always been a requirement here in USA for public schools, at least in all the states I know. If your kid is not vaccinated, she’s not mingling with a class full of other kids.
You can’t change your skin color or your gender, and you typically inherit your religion. Discrimination based on these traits are unacceptable.
You can be discriminated based on what you do (or fail to do), but not on what you are.
Being put in jail is discrimination, but it’s justifiable because you’re only put in that situation if you do something (break the law). If you don’t want to go to jail, don’t do the crime. Requiring a job applicant to have a university degree is discrimination, but it’s ok because you too can go to university. Allowing top employees to get Rp 200 million salary a month while the bottom one get Rp 5 million is discrimination, but it’s fine because the directors have more experience and higher skill gained over the years.
Discrimination based on refusal to dress modestly in a temple or refusal to be vaccinated is acceptable. If you do the wrong thing and receive negative consequence for it, it’s not discrimination, it’s justice.