Ultrasoubd or menstrual cycle?

K
Hi everyone. Midwife calculated my due date from last menstrusl cycle and accordung to that im 11 weeks. But recently i was in er coz spotting little bit and they saw on ultrasound and said im 12 weeks. Which one is right? Should i go by ultrasound or by last menstrual cycle?