Urinary Tract Infection or Sexually Transmitted Infection?

Patient: Hello I’m a 21 years old female, I experience some discomfort, a little painful, when I urinate, started two days ago, it goes away immediately afterwards but I am worried . hx: recently had a miscarriage, all due action was taken including finishing the prescribed antibiotics.

Symptoms: Only the pain/discomfort associated with urination