A buyout doesn't save much in cap or real money, unless they don't think he will make the team.
2.66M spread over 2 years, but you also have to account for the cost to replace his roster spot, which is 775k+. So a buyout costs 3.41M in total when considering all the economic costs.
Buying out Perron and replacing him with a 775k+ player does free up about 1.9M next season, but that comes at the tradeoff of 1.33M on the books the season after that. So it only really makes sense if they are 1.9M away from a very important move, to the point that they can justify losing 1.33M of cap in 2026-27.
Maybe they send him somewhere else as part of a bigger trade, but I think they probably gamble on keeping him. Part of why they acquired him was to add to the veteran presence, and Staios was very candid last year about how difficult it is to acquire good solid veteran leaders. I'm sure they are disappointed in his level of play, but his cap hit is a sunk cost.