Kubalik +#23 draft pick for Barkov

A trade was made in my league. Kubalik and the #23 pick in the 2023 NHL Draft for Barkov. The league is in an uproar claiming this trade is not fair. The logic behind the trade was simple. One team got the better player and the team who traded the better player was compensated with a draft pick. We are a league with draft picks, contracts and salary. The team that traded Barkov would not have been able to keep him next season as his contract is over. Was this a decent trade?