A harness usually isn't as comfortable for all day use.
Also, if your dog has long hair, it might get caught up in a harness.
However, for dogs that pull hard during walks, a collar can increase the risk of neck injury.
A harness may be the better option in those cases.