What date do you go by ?

Okay so I'm a little confused . I had my ultrasound done and they said my little bundle of joy was messuring 20 weeks 4 days . ( exactly where I thought I was ) when my doctor messured my belly /uterus I was at 22 weeks ? I'm a little bit confused . Would I stick with the ultrasound dating ? Or is my due date in between a two week time . Thank you in advice for any help . Everything is new to me on being pregnant .