Ahithophel had reason to be angry at David, but he didn't forgive him, so when Absalom rejected his advice in favor of advice designed to appeal to his sense of vanity, Ahithophel became even more like Judas Iscariot in his death.