I'm not sure what you mean by "exactly equivalent". In particular, the $E$ in your equations indicates different things.
In the second equation, $E$ is the total energy delivered by the circuit over the period of time (the load on the system). In a power delivery system, this will be driven by customer demand.
In the first equation, $E$ is the energy loss associated with a fixed-resistance portion. Often used when looking at the transport wires for instance. The trick of reducing resistive losses only works when they account for a portion of the power delivered, not the entire amount.
Let's imagine that instead of the circuit being dominated by a somewhat-constant customer power load, all of the power goes into a single resistor element $R$.
Assume we begin with $1V$ driving $1A$ through $1 \Omega$. The power delivered is $1W$.
Now to lower the resistance loss, we try to keep our power constant, but raise the voltage and lower the current. Unfortunately, without the large constant load, this is impossible. By raising the voltage to $2V$, the constant resistance now allows $2A$ to flow. Instead of reducing the power loss or holding the power delivered constant, both were raised.