This is a puzzling critique because it seems very much in the wheelhouse of "abundance YIMBYism" to advocate for cheaper housing--an argued byproduct of which is that fewer people are displaced. It probably changes the problem statement of gentrification since, if housing is abundant and displacement is low, there's not much to distinguish "gentrification" from just "investing in the neighborhood".
>the critical need for direct public housing to serve low-income communities
This isn't a problem caused by YIMBYism, nor one whose solutions are obstructed by it. We could by that reason malign it for not solving heart palpitations or cancer too.