Urgent care or ER

If you think you have a kidney infection or bad uti would you go to urgent care or ER at 22 weeks pregnant