I've seen enough willfully block affordable housing in violation of law that I've looked several times.
NIMBYs also encourage these sorts of lawsuits, because even if they know they will lose, these projects are 1) so close to not making sense that an affordable housing developer literally can not afford to fight for legal rights, and 2) there's a big fear that fighting the city legally will make all further building attempts by an affordable housing developer even more difficult and likely to fail.
I have zero empathy or sympathy for my NIMBY neighbors that have been displacing so many people in my community after several years of trying to fight for affordable housing. People that are otherwise "nice" behave in the most amoral ways when it comes to excluding people from their neighborhoods. It's been very eye opening for me in a sad way.