Actually it would not eliminate illegal immigration-just move the border farther south. The border would be a much shorter line but the terrain is jungle and mountains, not desert.
...and probably much easier to defend and build a wall across.
It would probably mean more coastline to defend, more hurricanes and earthquakes disrupting things but there would also be some great resort areas too.