Capital Gains - Selling RSU to pay tax liability upon vested

If an RSU (Restricted Stock Unit) is vested, and part of the RSUs are sold to cover the current year tax liability, it shows as a capital gain on 1099B form from broker.  Is it possible to reflect this as a capital loss, since the stock was sold to pay the current year (2022) tax liability?