True, but the way in which they affect each other is that they try their best to collide.
From that perspective, it's kind of weird if collisions don't happen.
Interestingly enough, when galaxies collide, the supermassive black holes at their centres do typically merge as their gravity is strong enough to attract each other.
It's by the way not particularly unlikely for stars to pass through other solar systems. Apparently about 70 000 years ago a binary star system flew through the Oort Cloud.
That’s hand wavy because if you’re imagining like grabbing the two galaxies and smashing them together… that’s like giga levels of magnitude faster dynamics than the speed of light, ha!
You’d have to like put the galaxies on top of each other and leave them there, probably for years, for gravity to get everything moving quickly enough (and then for the speed of light to even bridge the distance!) before really anything would happen. I think.
Engineer but not a physicist.
So with two galaxies colliding I would not expect the stars to hit each other as result of collision. But as result of interactions when speeds increase.
Why do we say it is mostly empty just because of 2/3 of these things don't interact? Disproving the plum-pudding model was significant but saying the atom is 99% empty space is misleading. We know there are billions of virtual particles appearing and disappearing all the time within the atom and space, they just cancel out.
Unless you think Sagan would have been surprised by the presence of an electric field (mediated by virtual particles…) between electrons and protons in an atom it’s quite likely you’re choosing an obtuse understanding of the term.
A solid wood table is not mostly empty by any common contextual definition. Photons do not pass through it freely, your hand won't pass through it freely, and the electron clouds of the carbon atoms in the wood are physical in almost every common sense of the term. They very much push back on any other electron cloud that comes near enough and are generally the only part of the atom that does the interacting.
While it might be true that almost all the mass is concentrated in the center of the atom, that's not what people mean by empty. Houses aren't considered empty just because most of the mass is in the foundation.
Anyway, for atoms we mostly care about colisions with charged particles. I'd say that they are almost empty.
For example, our solar system is mostly “empty” with the mass mainly concentrated in the Sun (and Jupiter). The galaxies are mostly empty as well, so that two galaxies can “collide” without a single star hitting each other.
So there is a certain intellectual pull to try to extend the analogy (wrongly?) down to the smallest level as well.