"would-you-date-a-ugly-girl-just-to-not-be-alone ?"
The answer is no, because the women will not want a man who is just dating her for his own interest . If she finds out the reason it will cause her to have a heartbreak. One of the most important aspects of romantic relationship is that the partner has to like you for who you are, as is and you will be breaking this trust by dating for your own interest.
Having said that, just asking this question alone does not make you a misogynist and I don't get why people were flaming you for that. You were probably confused because you could not figure out what was the moral thing to do and were open to inquire and learn . Instead of shaming you for a thought crime , they should have pointed you in the right direction.