UTI Spotting or Impending Miscarriage?

Guys I am almost 10 weeks & I have noticed pink when wiping after going to the loo. I’m terrified because on one hand I hear this could be a uti & on the other a miscarriage could be coming...either way it’s worrying.

Just need some reassurance on spotting while pregnant could have a positive outcome?