Coils are matched to the OEM number and to the cylinder position where the manufacturer distinguishes them.
A single failed coil is often the first of a set to go, but replace only what has failed unless the manufacturer specifies a set. Where a coil requires a boot or a spring contact, check whether it is included.