How does the sentence end?

When I had a migraine, I took the pills instead of the capsules because the 
OPT: a. capsules didn't work.; b. pills didn't work.;
a.