going up a hill requires more energy and puts a higher strain on the battery as it pulls more power (if that's a consistent part of your commute - then the battery health lowers faster).
The main factor with lithium battery lifetime is charging cycles. Going up hill would drain the battery faster lead to be more charging, but it would be a small effect.
That's my experience with an EV, the regen is so good I'll gain back significant charge going down a mountain.