Deciding between St. Andrews (UK) and Penn State

Hi, I’m a dual citizen of the US and UK but have lived in Pennsylvania all my life. I have finally heard back from all of my college applications and am currently deciding between Penn State main campus and St. Andrews (UK) both to study computer science. However, I’m having a hard time deciding between the two. My main focus with college is the quality of education and the career aspects that come afterward. From my brief research it seems that while St. Andrews is ranked slightly higher in its curriculum, Penn state has far better job connections after graduating (I intend to work in the US). If anyone could shed any light on either of the two colleges it would be much appreciated.

Thank you,