Is the Mexican-American War seen parallels to the War of the Pacific?

Would you agree that the land seizure of the War of the Pacific committed by Chile to Peru & Bolivia, is no different than how the U.S. did to Mexico at the end of the Mexican-American War of 1846 to 1848?