Islam is the religion of mercy.
Islam teaches us that we are responsible to others. We must be kind to God's creatures. Whenever the Qur'an advises us to donate, it does not make it specific to Muslims.
Yes, if you have to choose between a poor believer and an infidel, it is preferable to help the believer.