Biology aside, why did Allah grant infallibility to 124 thousand male Prophets and 12 male Imams while only granting 4 women infallibility in all of history? Does this mean more men are closer and more beloved to Allah than women?
Bismihi ta'ala
In our Shi'i belief, there is only one female who has 'ismah (infallibility), and that is Seyyidah Fatimah al-Zahraa (a.s.).
There are different dimensions to your question and answer, and I have covered it in a presentation which in shaa Allah could assist in answering your question: