Standard Arabic (Fusha) is the Arabic mostly used in writing, news, books, education and formal occasions. The dialects are what people speak in their everyday lives, and they differ from one country to another in vocabulary and pronunciation.
Your choice depends on your goal: if you want to read, write and understand the media, start with Standard Arabic. If you want to talk with people in a particular country in everyday life, learn that country's dialect. Many learners start with a foundation in Standard Arabic and then add a dialect, but there is no single order that suits everyone.
What matters is that you decide your goal from the start, so you do not get pulled between the two.
Why are you learning Arabic, and what puzzles you about it?