I am comparing academia to working as an initial employee in a startup though, not to working as an employer in industry in an established firm.
In this case salary is likely better, you still build stuff from scratch on topics that interest you, you don't work so that some guy can achieve his/her dreams, you have a higher chance of getting credit for the stuff you do (though wouldn't say %100 because yea fucking humans...). It even comes with the same levels of future uncertainty that a startup does lol. That being said as with anything luck is the major determinant here too. If you end up with a group of immature people and a bad PI you may live hell on earth (as you would anywhere). But I believe your chances of ending up with a fun gang of intelligent people is quite high, including the PI.