Answer:
This poem compares with the history of immigration because it shows how open the US was. It contrasts becuase the poor didn't always get what they needed.
Explanation:
(This is more in depth)
The poem compares because the US would take everyone in, as long as they were healthy. The US had a lot it could offer immigrants, as well. Usually, however, immigrants were faced with hardships, were discriminated against, and didn't get the help they needed.