I believe when talking about the light from The Sun, "sunlight" and "daylight" mean the same thing.
"sunlight" is more broad. You can describe moonlight as indirect sunlight and also sunlight includes other parts of the spectrum: things like radiation and not just visible light.
We usually say you can get vitamin D from sunlight, rather than use "daylight".