No, he didn't. He said "smart women choose not to go into coding. Leave that to us men to handle for you". Men hate the job? Really? Then why has Silicon Valley filled up with men from all over the world struggling to crowbar their way into it? Coding isn't a horrible job - if it was, you wouldn't have such high salaries and companies with anti-poaching arrangements to prevent further inflating those salaries. It was an extremely patronising comment, and seemed to verbally pat women as a demographic on the head. "I don't discriminate against applicants on gender, but hey girls, you don't want to apply anyway"
The irritating thing is that you can only rarely group men or women together as being one way or the other. Once you get past primary and secondary sexual characteristics, there are no blanket statements which apply. Pick pretty much any blanket statement you like, and if you actually look at the men and women around you, you'll find plenty of exceptions.
I actually think that the comment was a troll, but Poe's Law applies, and plenty of people will support his view.