I'm European, so I'm not aware of all details about W2 and W9, but basically, all western countries have tax systems based on the same concepts. So here, I will talk about the concepts, not real figures.
When you provide your work to a company in exchange of money, you can do it as an employee, or as a consultant/contractor/company. As an employee, you have a salary and you are protected by employment laws which give you some security. As a contractor, you are selling a service (your work) to a company. This is a selling act: good or service in exchange for money. No long term perspective, no perks, no guarantee it will continue. It is much simpler: they pay, you deliver. Once done it's finished. To gain more, you have to sell your services again.
If you are an employee, you have much more protection, but also much more obligations. It becomes difficult to have a side project, because you must comply with the contract you signed with your employer. Your employer may claim intellectual property on anything you created during your side activities. If you are a contractor, it becomes impossible: when you buy a product, you don't buy everything in the company. As an employee, you must be present from 9 to 5. As a contractor, you must deliver to be payed, and you are free about the means you used.
As a contractor, if your client uses you exactly like an employee, you can sue them and become a real employee, with all the benefits of this status. The opposite is not true.
There is a money question. I'm not very skilled in US laws. But basically, it is optimization and your choice should not be made only because of money. When you make your choice, then you optimize to pay the less tax possible (without paying tons of money to an attorney in order to save peanuts...). Decide first if you want to be an employee or your own boss. Then optimize taxes.