Peter Singer debunked
He asserted that you are evil for spending money to enhance your own life instead of donating it to charity to prevent people from starting.
His main premises were that
We have a moral obligation to prevent something very bad from happening if we can (if doing so does not require any morally significant sacrifice).
Hunger, disease and other sources of suffering, disability and death are very bad.
If our premises leads to a clearly false conclusion than at least one of the premises must be wrong. You might think that the issue here is premise 1 and this is indeed a useful excuse for discarding his argument but premise 1 is actually true objectively.
The actual incorrect premise is 2. Other consciousness facing things like death or severe pain is not a very bad thing by itself.
Looking at just genetic evolution we see that whether or not altruism is selected for by evolution depends on how genetically related you are. People are more prone to sacrifice themselves for the sake of their children than for the sake of some stranger and this is not a bad thing, it's just human nature and we should just accept it as something good. Then people can focus on their own children at least and try to make their lives good.
What we see by a lot of humans is that they have maladaptive altruism resulting in them caring more than ideal (in terms of genetic survival of the fittest) for people they are not genetically close to.
There is also cultural and societal survival of the fittest to consider
. It can make sense to push people to take care of other citizens in order to make your state more competitive. People outside the control of your state are instead a potential future problem, if you give aid to other countries that will help them build a stronger military which you do not want, you want them to be weak so you can conquer them easily, you only want to help them if some other state is going to invade first (such as russia invading Ukraine) or if they are going to agree to peacefully merge into your empire.
It is also worth mentioning that providing aid to prevent people from starving will likely result in a bigger future human population which will be more burdensome for the planet to support. You will eventually need a mechanism to keep the population down (such as big fights in a gladiator arena).