This is also why it's rare to fast charge an EV at home—that can top fifty kilowatts.
If you use a water-saving shower head that only uses 5 liters/min that cuts in half, but still quite a lot of peak energy.
Now you might argue that you only use it for a wee bit while you shower. And that is true. However here in Norway they will soon introduce a peak demand pricing element on the electricity bill, which means you'd likely end up paying a lot for that instant heating.
In contrast, showers are typically taken in the morning, so the water heater tank could get nice and hot during the night when electricity prices are low, and then kept off during the day.
[1]: https://bloglocation.com/art/water-heating-calculator-for-ti... (Water Heating Power Calculator)
I have this in my house.
And a heat pump is going to beat it hands down.
I have a natural gas tankless system and find this to be a non-issue.