If your religion doesn't allow you to do your job, you should find another career. If your religion says you cannot kill animals, you don't work in a slaughterhouse. If your religion says you can't give people certain medicines, you do not work in a pharmacy.
But Target disagrees. They are allowing their pharmacists to not do their jobs. This is a very very good reason to never visit Target again.
It's very simple. If someone has a prescription from a doctor, it is the pharmacist's job to fill that prescription. If the pharmacist cannot do that job, they need to find another job that doesn't hurt people when they refuse to do it.