Posting to follow as we may get a heat pump water heater in the future. My house has very hard water and tank is 7 years old, but we have installed a water softener 2 years ago. When I inspected the anode rod 2 years ago, it was 90% intact. From what I've looked up, heat pump water heaters have replaceable anode rods and internally seems to be the same as a conventional electric one, so I can't imagine making any difference in that regard, as well as regular maintenance like flushing out sediment. The only thing I see that makes the heat pump water heater different is the heat pump sitting on top and refrigerant coils that wrap around the outside of the tank under the insulation. I'm curious what other replies are received.
I'd recommend at least installing a whole house sediment filter. For the sake of your washing machine and dishwasher, along with everything, else why not a softener as well?