Learning to program takes a lot longer than it would take to read either book, no matter which order you read them in.
Newbies seem to be under the continual impression that if they just find the "right book" then they'll be wizards in no time.
Unfortunately, this isn't even close to being true ->
Teach Yourself Programming in Ten Years
Also "best" is an entirely subjective statement. What's best for you might not be what was best for me, or best for anyone else.
Since we don't know you, saying "choose A then B" (whilst locally true for me) means diddly-squat to you.