Producing hot water in a flow-through system with a 20kW burner is probably about as sensible as trying to do so with the heating element of a heat pump.
Why shouldn't that be sensible? On the contrary, it would actually make sense to produce hot water only when I need it! In other words, get rid of the hot water storage tank! But then the heating system would probably have to struggle too much. From an energy balance perspective, it doesn't make much difference whether I heat for 10 minutes at 20 kW or 20 minutes at 10 kW.
The heating element of a heat pump, on the other hand, is an absolute energy nonsense. But it can't be helped, since a heat pump usually can't reach more than 40-45 degrees. It only depends on the overall balance of the system; as long as that is still okay, you can afford things like that.
Whether or not to heat the storage tank to 75 degrees once a week due to the risk of legionella is something everyone has to decide for themselves. The risk is negligible, but if it does get you, the complaints are big.
Best regards,
Andreas