It is not. China is funding a lot of water infrastructure in African countries along the Nile River. This means countries which play ball with China get to control the flow of the only source of fresh water for a ton of other countries. Guess what happens when Country A gets sick of Country B withholding water? You guessed it.
China's infrastructure spending in Africa is an attempt to replicate US diplomacy. It's right in Xi Jinping's playbook: he thinks the US is powerful because of its money and its ability to translate that money into political power. The problem is what his country is doing is shockingly short-sighted for a culture that prides itself on long-term planning. You can fuck with mining and you can fuck with manufacturing, but you shouldn't fuck with something essential like water - which the Chinese are doing. I see this having a destabilizing effect by the middle of this century.
Also, giving money to African countries and expecting it to translate to diplomatic influence is pretty stupid. African governments change like the wind and steal money without shame. Pretty much the only African country that the US has focused on in the past few decades is Nigeria, which stands out in terms of stability and ability.