Unisom diphenhydramine vs doxylamine

ja

My doctor only said unisom 25 mgs. I didn’t realize there are two kinds. Are they both safe for pregnancy? I’m 13 weeks.