if the bump touches the battery pack, yes it's almost certainly to the trash ...
the repair will cost more than the car.
For example, Nissan Leaf 40kWh model,
cost of car: 30000€
cost of brand new battery pack + install work at Nissan: 8000-9000€, so around 1/3rd of the cost of the car
cost of refurbished battery pack + selling the damaged pack for modules at 3rd party: 3000-4000€, so around 1/10th of the cost of the car
Tell it to this guy
https://vancouver.citynews.ca/2023/12/11/hyundai-ev-battery-icbc-cost/
It's a Hyundai---that's why!
My daughter bought a Hyundai Accent. (I.C. car)
Nice car till the engine blew up.
She then had to wait for months for warranty repair to be completed, (the beginning of a degree of discontentment with the brand).
A while later, she was in the middle of a 5 car pile up.
The Accent "didn't look that bad", but was a "write off".
OK, it was replaced with a new Accent, so she was happy enough, but a year later an old bloke plowed into her as she was entering our local street.
Again, the car "didn't look that bad", but it was also a "write off".
This time the insurance company paid her out, so she bought a Toyota Corolla.
Some time later, she was butted from behind by a bus.
The Corolla "didn't look that bad" & was drivable!
She put off getting it repaired for a while, then whilst she was turning into our driveway, a lady in a Holden Commodore drove into the LH rear of the car. (yes, she IS unlucky)
It looked much worse than either Hyundai had, but it has been repaired.
It seems that for some brands of car, the default is "write-off".