Cornell or Amherst college?

Amherst College does have a computer science department and offers a computer science major.
https://www.amherst.edu/academiclife/departments/computer_science
As noted above, the of computer science department at Cornell is among the most highly regarded CS departments in the United States.
As far as admission chances are concerned, both Amherst and Cornell are highly selective, especially for international students. We cannot predict which is more “likely” for the OP, other than to say that the chances are daunting.