President of the Continental Congress can be considered a head of state, due to being, at least ceremonially, the highest-ranking U.S. official, but non-executive one. His powers as presiding officer were limited as well. He was more "first among equals".
If we're considering them as "Presidents" in modern sense (heads of state/highest ranking officials), then why some are regarding Hanson as the first? John Hancock was President when independence was declared.
So, yes, formally John Hancock can be considered the first formal U.S. head of state, but George Washington will always be the first "President of the United States", under U.S. constitution.
If we are looking for some equivalent of "chief executive" (although it's still
loose comparison) that would be more
Secretary of the Congress.