All very valid points. I live in the dessert, and we have mesquite trees here everywhere. They also produce a bean in a pod which I learned several years ago is edible!
I ordered some flour and put it in bread and other things. It’s a sweet flour that tastes like a very interesting chocolate.
It’s just hard to harvest, and to mill, and not a lot of people are willing to eat different things.
But the tree thrives on less then 8 inches of rain a year.