Due date confusion!

Based on LMP I'm due Nov 9th But my ultrasound shows my EDD as Nov 19 which I normally used to calculate how far along I am but when I was in the hospital due to my bp being high I noticed the Dr didn't use the ultrasound due date. So I'm pretty much confused as which is the one I should be using. Can someone give me some clarity on this please.