A phone will charge as rapidly as it can without undue risk to the battery's longevity. But, it's still a trade-off. If you charged slower, you would decrease risk to longevity.
But when you to bed, your phone doesn't know that rapid charging convenience doesn't matter. So it will still make the same trade-off. If you use a less-powerful charger, you can force it to take its time in charging.
While charging circuits are much smarter now, and the difference might be minimal, you want lower charging currents to minimize the amount of damage that is done to the materials in the battery. It is universal that higher charge rates cause more damage to the crystal structure that holds the lithium ions.
Does this mean using one of the bigger brick 15in MacBook Pro charger on a 11in MacBook (both USB c) is bad for the smaller MacBooks charger? My gf always uses mind when she can’t find hers...