One of Will Smith's most underrated movies has got to be the homeless superhero film, Hancock.
The story of a demigod who forgot his past life only to end up as a hobo superhero.
This gave him the ability to not give a single care about anything surrounding him which made him one of the best figures for the birth of an anti-hero.
The reason why Hancock is one of the best anti-heroes to ever exist is due to his motivation of always having the desire to improve himself as a person that everyone can accept.
His antics of being a perfect anti-hero mainly generate from these ideals:
Justice is an option

At the start of the film, we witness just how laid-back and carefree Hancock is when it comes to law enforcement.
This is one of the most common traits of an anti-hero as they would put aside any and all moral obligations to get to their goal.
This lack of commitment towards crimefighting remains consistent towards the first half of the film and gives the audience an idea of just how little Hancock cares for the safety of innocent citizens.
However, what makes him an ideal candidate to be the perfect anti-hero is the fact that he not only aimlessly protects anyone and everyone at the genuine request of a civilian but also that his attempt is made out of an attempt to actually provide something worth value to society has shunned him to homelessness.
Killing is not an option, or is it?

Hancock has never had a clear moral code of whether his go-to solution is to kill his foes or simply incapacitate them in order to stop them.
Even after Ray comes into the picture and attempts to change the demigod for the better, his rule is still in the grey for the majority of the film.
So the rule of not killing the bad guys is still debatable, as in the first half of the film, Hancock is ready to plant a car full of thieves on the top of a skyscraper.
By the second half of the film, he has violated two inmates by shoving the head of one inmate into the other rear.
Not to mention the scene where he has become a full-blown accepted superhero and gets away with chopping off the hand of a criminal purely based on spite after the man in question triggered him by calling him an a-hole.
A self-interest that works for everyone

The factor that makes Hancock the hero of the anti-heroes is that his self-interest consists of him bettering himself rather than improving any other external element.
Take the Red Hood from DC as an example, an anti-hero who aims to rid Gotham of villains to make it a safer environment.
Whereas, Hancock's goal is to only improve himself mentally which makes him the best hero of the anti-heroes as his objective does not require anyone to be harmed or killed in the process.
Which, therefore, makes him the most progressively wholesome heroic murderer.