I think it depends on how important the pills are.
If you’d be endangering your health if you didn’t take the pills, take them.
If they’re about some minor inconvenience instead, (e.g. like the pills I was taking for my spring allergy) then it probably doesn’t make sense to take an action that you’ll be remembering with disgust, for relatively small benefit.
They’re important, so I think I’ll end up taking them.