> How else do you interpret this but racism:
While the way it is phrased might not be perfect what they are saying still holds true. According to them Egypt has a very low scientific output, far lower than it should have.
Of course scientific output isn't everything. These Egyptians might be using the water and resources for something else other than science. But none the less, from a global standpoint that doesn't help "us", as in the world as a whole.
If the water was redirected to other nations these nations might increase their scientific output more than that of Egypt goes down, which means it's an overall win for humankind.
To address your second point about religion: Is it really? A lot of religions advocate for having many children. Christianity as well. While of course it isn't the only factor studies[1] show that religious people have more children.
So let's recap:
* The commentor claimed that the water might be more use to humankind as a whole if it is directed to another nation that might raise their scientific output more than that of Egypt will lower. This is questionable because it doesn't take into account other factors like production of goods. But in general it holds true, humankind as a whole gains the most by having water used as effectively as possible
* The commentor claimed that high birth rates are a result of religion. Once again this isn't a black/white matter. Religious people do have more children. Islam or Christianity, it doesn't matter. As such I would not call this in any way racist or islamophobic, though of course we are missing sources to know if this is actually the case. It might be or it might not be, but claiming it is definitely not the case and pulling the racism card is even more nonsensical as it discredits a possible, though not validated, option for why birth rates are high.
[1]: https://www.acsh.org/news/2016/07/20/religious-people-really...