Yes, invasion would be a very bad idea.

That being said, the Mexican War worked out well for the USA. If the outcome had been different, then the oil fields of Texas and California would be part of Mexico.

Talk about alternate history.

... and if Russia hadn't flogged off Alaska - no Prudhoe and no Governor Palin