Antibiotics

JE
My doctor today prescribed me an antibiotic that said on the leaflet do not take in pregnancy as it can cause birth defects, (trimethoprim I think) so I rang and they said it should be alright as I'm 19 weeks but I made them give me amoxicillin instead. Am I just being silly or did I do the right thing? The pharmacist looked at me like I was stupid.