Everything you describe is true only in some places, likely California. In much of the rest of the world, electricity demand peaks in the evening, when the sun is low in the sky and continues well into the evening, when the sun isn’t out. Notice how even the Wikipedia page about the duck curve lists mainly California. Even in Australia and the UK, daylight hours and electricity demand mostly do not overlap.