Any thought please?

Yesterday I did pregnancy test with pregnancy kits. Both kits gave me positive result. But when I went to my doctor he did a pregnancy test where one result came positive and one negative. Then he told me to do a lab test. I did it too. It came negative. I was heartbroken. Can anyone tell me what’s going on? It made me confused.