I went neither player because we don't have the cap space.
Leafs currently have $9.3 mil free space, but that is a result of our current UFAs status as in #1LW Hyman ($2.25 mil), #1G Andersen ($5 mil), 3rd pairing Dman Bogosian ($1.0 mil) and a pair of depth forwards Thornton ($750k) and Galchenyuk ($1.0 mil) = $10 mil
Each one of those players needs to be replaced at least those positions filled to go from 17 players to 21-22 to start the season. Leafs can steal a couple mil from the goaltending position and find a backup for $3 mil, to reallocate to #1LW to replace Hyman for approx $4.5 mil and a depth Dman for $1 mil and a couple of forwards making league min at $750k, without any larger contracts going out.
Leafs are not in a position to go deep sea fishing for a $9 mil player like Hamilton nor Landeskog, but rather be fishing near the shore line looking for bargains and fill some key positions of departing players strategically but cost effectively.
If you want Hamilton then Reilly has to be going out and not much cap money coming back.