Also if the elevation change is such that you don’t have enough to get to the top, the amount you would regen on the way down doesn’t matter.
> climbing a mountain and then going down the other side does cost more net energy than driving the same distance on flat ground.
You say this, but your reasoning is regen braking? What if you never had to brake the entire way? Where did all the energy going going up the hill go? If I carry a sack of sand up a hill and drop it, the amount of energy it has falling is equal to the amount of energy lifting it up the hill. Why does this then magically change when that sack of sand is now a car?
I do get if you're needing to ride the brakes a lot you'll get a pretty big impact on range, but a lot of grades wouldn't require that.
At the same speed, but if you don't break you likely won't have a constant speed. There's also motor efficiency, but that has less of an impact on electric vehicles because they are efficient over a high range.
Mechanical brakes do this by converting that energy to heat and brake dust.
Regen brakes do that by converting around 70% of that energy into battery storage to be used later.
Your sack likely does not roll down the hill with zero losses to friction along the way. The sack has the same energy as it did before you moved it, but it does not mean the journey consumed net zero energy.