The ratio of HW cost to energy use is different for each computing platform and depends on algorithm etc. For example, it seems Cuckoo Cycle PoW has somewhat higher capex/opex in ASICs because of the heavy memory use.
For photonics the ratio changes significantly due to fundamental physical properties of analog computation, photons vs. electrons and so on.
Anyhow the process of the Si Photonics (and memristors/other analog approaches to AI) maturing to the same degree as digital ASICs will likely be long and gradual so this isn't a practical issue for next decade.