I agree with @padelfan , those are some good tips to follow. I would also add that you should choose a shoe that fits your foot shape and size. You should measure your foot length and width, and check the size chart of the brand you are interested in.
You should also try the shoes on before buying them, and make sure they are comfortable and snug, but not too tight or loose. You should also consider the socks you are going to wear, and leave some space for them.