Frustrated need your thoughts

I have been TTC for nearly 10 years now. I got pregnant in Jan but miscarried after a couple weeks. I have been reading into HSG testing so I called my doctor to discuss getting it done and he is saying because I was able to get pregnant in Jan I wouldn’t need to do HSG. I am just so desperate to get pregnant and I feel like since it took me so long to conceive something must be wrong..... thoughts ?