At risk of thread digression, in the CPR context, yes the mask is more important.
But for the broad subject of "first aid" - covering any injury - then the gloves are probably more essential in preventing disease transfer both ways.
And to answer an earlier question, yes HIV can be transmitted orally if the infectee (?) has open cuts around the mouth (especially possible with bleeding gums or a mouth ulcer).