Plenty of YIMBYs are fine with "do both!": more market rate housing supply, and more subsidized housing for those who can't afford the former. The more of the former you produce, the more you can concentrate the latter on the truly needy, and not people like teachers, firefighters and so on who have good jobs that are important to society.