Question on USCIS form asks about legal marriages only. For that matter, civil ceremony followed by religious ceremony isn't treated as two marriages. In order to marry, one must be free to marry (legal term), which means either their prior marriage ended up in divorce, they never married before or their spouse died. Whether marriage to same or different person doesn't make any difference.
I cannot add anything else after this comment, it's pretty clear in my opinion