Hoffman was not very good defensively but he was still a game-breaker, which Boedker is not. Hoffman got people in the seats (and out of them); no-one pays money to watch a defensively responsible forward. Also it's pretty much a forgone conclusion that Dorion took less to move him out West, and he lost big when Wilson moved him right back to the Atlantic.
As for Karlsson, of course it's a given that he wasn't going to sign here, so if you take that into account it's a win. But if you are trading a once-in-a-generation type player under 30 you are not winning anything.