The percentage of civilian deaths of Palestinian casualties to Israel is around 70%. Their goal isn't really to target soldiers
> It's estimated that Hamas has between 30,000 and 40,000 soldiers(1)
This article does not provide a source for that figure but it's definitely on the high end. The number of members of the Izz ad-Din al-Qassam Brigades (Hamas' armed wing) has been estimated anywhere from 15-40k.