It might be the titan was already running on fumes and didn't have any juice left after trying to hit Mikasa. The fact it didn't chase after them suggests as much as well. In that sense they might have been able to defeat it, but all in all after losing so many men due to underestimating the enemy, Levi's decision was undoubtly the correct one.