Always go for GmbH. UG will make you account for everything with your private money. If something goes wrong in your business you'll be dirt poor.
You are confusing UG with something like GbR. UG is basically a baby GmbH with constraints of the name of the company and how much money the associates can extract from it (until the company got 25k€ captial and can become a normal GmbH).