It was never about killing somebody, it was about stopping Lord
Voldemort from killing more innocent people. Unfortunately, the
only way to do that was to kill him.
Harry wanted to stop Voldemort from hurting his friends, family
and lots of innocents witches, wizards and muggles. Voldemort
started a war, Harry ended it.