Ultrasound vs first day of last period


I had my first ultrasound on November 6th and measured 5w5d but my last period was oct 3ed the ultrasound gives me the due date of July 3ed but period date gives me July 9th I know baby can measure ahead or behind but just wondering what date I should go by!