HSTS only helps if the user agent has visited the site before and there was no interference from MITM during the first visit. In word order, you are vulnerable when you first visit the site, but never again.
Since you are still vulnerable for the first time, HSTS is far from perfect. But this is better than nothing, because it protects against an attacker who is targeting you AFTER you have already visited the site before.
(Except that the user carefully used https for the first time: in this case they are protected for the first time, and are also protected from forgetting to use https in all subsequent visits.)
source share