u toronto cs or uw madison

which one is better? don’t consider the costs

As a former badger, I’d say Madison 100%. I don’t know much about Toronto.

UToronto is arguably more prestigious.

Do you mean worldwide? I thought U.S schools might give better education.

Make your decision based on where you will work after you graduate. Both universities will provide you with exceptional training in CS. US companies will typically not be recruiting in Canada. This impacts both your ability to land intern positions in the US and landing a first job in the US. And I expect conversely (if you attend a US University) in Canada.