DUE DATE QUESTION

Whenever I had gotten my first ultrasound I was 9weeks pregnant they estimated my due date to be ( July 22)

Then I went to the ER when I was 18 weeks pregnant bc i wasn’t feeling good they checked the baby out and the due day changed to (July20)

Should I just stick with July22 which is what my Ob told me or is it July 20 ?