While frequent urinating can be a symptom of both, with a uti there tends to be discomfort while passing water as well as a possible temperature.
No there is a difference between both and in case of urinary tract infection the condition of patient is worse than in early stage of pregnancy. Besides dizziness patient go for excessive vomiting and there Is difference between both.