income and capital gain are different.
Income is payment for service. Capital gain is increase in value of asset.
Even though short term capital gain is taxed at ordinary income rate, it is not ordinary income and can be used to offset other capital losses.