Root canal yes or no during pregnancy?!?

Gi

I have a root canal that needs to get done but a lot of people are saying it’s not a good idea but the doctor says it’s fine what do you think?!?