Sorry, I may have misunderstood. It seemed to me that you are asking which of two choices to go with to power the ESP32 and related electronics:
1. The 24VDC LED driver, reduced to 5V by a buck converter.
or
2. A 220V AC to 5V adapter (what we would call a wallwart, presumably).
So my suggestion is: use both. You would arrange so that the 24VDC buck would normally provide the 5V power, but if the 220V adapter is plugged in it cuts off the 5V from the 24VDC supply. A MOSFET would do the trick. That way you don't have to decide now but can choose when you hang the light.
Even if you later decide that you will never use one of the other, you just don't populate the PCB with the components for that part. It costs almost nothing to design it in and then not use it, but if it's not there you can't later decide you did want it after all.
The bit about the battery you can safely ignore - just a bit of light-hearted banter.