Is neck used to mean the same thing in the next two sentences (see options)?

The horse won by a neck.

The bottle had a wide neck.

OPT: (I) different meanings (II) the same meaning
(I)