I like both pitchers, but your give is excessive. Empty the farm system for 1/3 a season for Ryan and then maybe, if they play in ‘27, one more year? He will cost, but not emptying the farm. And no way do you give up Shaw for Gray. That is a crazy overpay.
For a rental like Gray or even Mize, I would be ok with Kepley or someone around that level. Maybe, if you had too, add another lower level prospect. If Shaw is traded he has to bring back a guy with at least 2 years AFTER this one. Maybe Detmers. Even if you have to add to Shaw, that is fine.
Other options are Wacha, who has a team option after this year, Soriano(who has 2 years after this year) a Peralta deal for a rental and maybe a low end trade for Lugo. Guys with multiple years left consist of guys like Cameron, Early and a few others. Those would start with Shaw and work from there. I like Ryan too, but not for Shaw.