No, you misunderstand. If the stock and advisory role were given to Netflix as part of the deal, it would have been fine. That's not what happened here.
The benefits went to the executive directly. He asked for personal bribes to sign contracts on behalf of Netflix. He enriched himself at the expense of his employer. This is illegal.
You can form "customer advisory boards" which basically pay small percentages of common to early users to use the product.
Like, seriously, more than half of the companies funded by YC do this. I think this is the norm more than the outlier.