Obito can defend himself easily. All he has to do is keep dodging or attacking, and gai will eventually die, if obito doesn't kill him first.