whataboutism - discrediting a criticism by accusing hypocrisy, in order to shift the focus away from oneself and onto others.
: Graham shifts the focus from his unethical actions to win the election to Harrison's unethical actions to win the election.