With the usual disclaimer to visit a tax consultant for advice closely pertinent to your financial situation...
Short answer: You not only don't pay taxes but also get to deduct the losses from your net taxable income.
If you held the stock for less than a year you get to offset it against potentially short term gains from other stocks. For ex, you sold stocks (that you held for 6 months) for a net profit of $1000
and from the sale of 10 of the stocks you mention you overall incurred -$100
your net taxable capital gain is $900
.
For long term losses you get to offset them against long term gains and if there are enough gains to be offset then you could apply the remaining losses (if any) to short term gains.
Further, if the losses are still greater, then you could apply them against your ordinary income (check the limits for 2019).