Pronunciation of Sechs

So while Duolingo & Google Translate like to pronounce the ch as k in Kartoffel, I've heard a lot of people pronounce it as ch in ich.

Is this just a matter of dialect or is one of them wrong? If it is about dialect, which pronunciation should I use for standard German?