Pregnancy heartburn

My doctor suggested Pepcid or Mylanta for heartburn. TUMS pretty much does nothing for me.

Any suggestion on which one is more effective? Pepcid or Mylanta?