Which slep tab Is this safe while pregnant?

❄️samantha💕

One has doxylamine the other has diphenhydramine,my doctor told me one was okay I can’t remember which,please help with fast response as I need to run to the store and get some now so I can sleep for work.