Ideally there would be fewer dogs that safety and homes. The fewer dogs in need, the better.
Many construction sites populated with dogs. And those that survive have puppies. Sometimes many puppies. We are not able to give homes to all dogs, but where possible we can spay the female to prevent more puppies and more suffering.
To prevent the scramble to protect and place puppies and young moms, is the need to control population growth of dogs that will be subject to suffering and abuse and killings. It is that simple.