I would really like to find a way to trade for Frazier from the Yankees. I think he's got middle of the order ability and above average RF defense once he settles in. I could see a future OF of Acuna, Pache/Waters, Frazier.
The Yankees need to move him too. He's obviously not a fit in NY with the team, fans and media and he's got nowhere to play. But, the Yankees want a controllable starter and are looking for a 1-3 starter instead of a rotation filler.
The only way I can see it happening would be a 3 way of some type which is difficult to do.
OTOH, what the Yankees want isn't necessarily available. If you look around the majors at teams definitely out or likely to be out of the WC race by the end of July, then the options for the type pitcher the Yanks would want are pretty thin:
Toronto: Stroman, a good fit for a trade involving Frazier
Baltimore: no real fit
White Sox: no real fit
Detroit: Matt Boyd
KC: nothing
Angels: nothing
Mariners: nothing
Mets: Matz, Syndergaard, Wheeler but none having a great year and Mets may not want to trade with Yanks especially for Frazier
Miami: nothing
Washington: still in it but maybe Scherzer or Stras if the Yanks want to deal with the money.
Reds: maybe Roark or Gray but those guys don't fit the bill really
Pirates: they might take a chance on righting Archer
SF: all their guys including Madbum don't really fit
My guess for Yanks would be they end up with one or more of: Stroman, Boyd, Archer and Frazier would be a fit for any of those teams