It's both. Prices of electronics have skyrocketed because data centers are reserving years worth of manufacturing time from the chip fabricators, meaning no one else can get any. Datacenters are increasing electricity prices because they're eating up cities worth of power.
Binary thinking is not helpful