It’s all in the implementation. Making a generalization about amps by class is . . . well . . . unfounded. It’s like saying all blond(e)s are dumb. Every one I’ve met is different.
I’ve heard the AHB2 (class H) in my own system (with Janszen electrostats), and it sounded great.
I’ve heard Apollon amps made with PuriFi 1ET400A modules (Class D) in the same system, and the sound was great also.
It’s true that some early Class D didn’t sound so good. Development has been intense, and it’s paid off. The good ones are more than competitive with Class A and AB. Choice then becomes a matter of individual taste.