In the final scene, Hamlet apologizes to Laertes twice—publicly before the duel, privately during it. Both times, he frames his actions as products of circumstance, not character.
Hamlet accepts responsibility but rejects villainy. "I here proclaim / Was't Hamlet wrong'd Laertes? Never Hamlet: / If Hamlet from himself be ta'en away, / And when he's not himself does wrong Laertes, / Then Hamlet does it not, Hamlet denies it."
It's a sophisticated (and self-serving) distinction: the act was mine; the intent was not. He's not asking Laertes to excuse murder—he's asking him to recognize that madness, grief, and circumstance drove the blade, not hatred.
Laertes accepts—then wounds him with the poisoned foil anyway. The apology is human; the plot is fatal. Shakespeare lets Hamlet die having spoken the truth, even if the world doesn't pause for it.