But the former is not illegal while the latter most definitely is (unless it's your own software, etc.).
Loophole has negative connotations. But it really depends on many factors.
A prosperity gospel preacher buying a second LearJet tax free is not the same as a company hiring contractors to stay under 500 employees in order to retain some small-business benefit.