This is not my personal experience but from people who have been training for years like a decade or so. I am just a boxing noob.
Boxing helps when you have a lot of experience and you can estimate the situation and you can throw a lethal combination of punches. But that also means you have to make sure they can never grab you. Clinching in boxing kind of shows what happens then. A streetfighter will fight dirty. Overall, you need to be in good shape. Be able to move fast, keep your balance. With kick boxing, you can also use your legs and knees and elbows.
But it is best to avoid a fight. If they pull a knife or a gun, you will never be able to punch them out fast enough.