It's not. Your question doesn't make sense. UDP uses IP. In fact the two basic protocols running on IP are called TCP/IP and UDP/IP. So, your question can't be answered as written.
If you're asking about TCP/IP vs UDP/IP, the short answer is that TCP is much more secure (data wise), but UDP is faster. TCP/IP has a lot of overhead to make sure the data gets to where it needs to be intact. UDP/IP just kind of blindly shoots the data and packets can get lost through misdirection or colision, so the application has to deal with lost data and retransmissions. UDP/IP is very fast though because it doesn't have all that overhead confirming that the data made it.