Actually, from the studies I’ve read, we know MW and Andromeda are getting closer from each other, at a speed of about 75 miles per second, but there is still high uncertainty on the precise course of the two galaxies. We may actually get closer, but not collide, like two cars rolling at each other but on two different lanes.<br /><br />If it happens, the gravitational effects may be strong enough to modify the course of the Sun around the galactic centre, but not to tear the planets apart of the solar system, or influence greatly their trajectory.<br /><br />Also, M31 contains more stars than our MW but appears lighter, according to the last studies. This could be due to the fact that MW got more dark matter, but also because M31 just passed through a high rate star formation period. So MW seems to be the bigger and heavier of the two<br />N. W. Evans & M. I. Wilkinson (2000). "The mass of the Andromeda galaxy". Monthly Notices of the Royal Astronomical Society 316 (4): 929–942.<br /><br />As far as I get it, this question of M31 and MW collision is still highly debated amongst the scientific community.<br />