But what does make a big difference is the air around the bomb---a nuclear explosion in space is way different from one in atmosphere. X-rays from the nuclear reaction heat surrounding air to many millions of degrees [1] and that's what causes (most of) the fireball you see. In space, the only matter available to make a fireball is the weapon's structure, probably only a few hundred kg, and that dissipates and cools rapidly. Nuclear-armed air intercept missiles were built in the nineteen-fifties and sixties that depended for effectiveness on being in air to generate the necessary blast effects to kill a bomber with relatively inaccurate aiming, but in space, a nuclear explosion almost needs be a contact hit to do much mechanical damage...discounting nuclear radiation effects, of course.
[1] Fahrenheit, Celsius, Kelvin...it makes no difference.