Not entirely correct. The phone assists to some capacity, the battery also regulates some of it, and the charger regulates the electricity, voltage and other functions as well. Here are articles talking about how bad chargers can damage or blow up a phone
https://www.seeasamstar.com/fake-charging-cable-affect-a-phone/
I can find more examples but there are also warnings directly from phone makers about cheap chargers