One of the benefits of hot stamping may be reduced part mass, but increased safety performance is another critical reason to use it.
In general, the energy (and cost) to manufacture a vehicle is much smaller than the energy and cost to operate the vehicle. Any mass reduction for the final vehicle usually can compensate for energy differences during manufacturing. This has been (and still is) studied extensively. You can conduct an Internet search using search words "Life Cycle Analysis" and "automobile" to learn more.
As an initial cocktail napkin/back of the envelope calculation, the energy required to heat and cool a 4-kg B-pillar during hot stamping would be ~ 3300 kJ, which would be ~ $0.07 in electricity cost in the USA midwest. That doesn't account for the entire cost of the process, but it is a place to start. That cost is easy to recover in fuel savings when the hot stamped B-pillar has almost half the mass of a traditional B-pillar made with dual-phase steel and stamped at room temperature.