In weakly magnetized capacitive radio frequency (RF) plasmas electrons accelerated into the plasma bulk by the expanding RF boundary sheath at one electrode can be returned to this electrode due to their gyromotion around an externally applied magnetic field oriented parallel to the electrodes. If the driving frequency and magnetic field are chosen so that the electron cyclotron frequency, ωce, equals half of the driving radio frequency, ωrf, such energetic beam electrons will be returned to the sheath during its expansion phase and, thus, will be confined and heated resonantly. This Magnetized RF Sheath Resonance (MRSR) effect is studied based on kinetic particle-in-cell simulations in weakly magnetized capacitively coupled oxygen plasmas. In comparison with electropositive argon plasmas, this resonance mechanism is found to be affected strongly by the electronegativity of oxygen discharges. In the unmagnetized case, low-pressure capacitive oxygen discharges operate in an electropositive mode, where nonlinear high-frequency sheath oscillations play an important role similar to previous observations in electropositive discharges with low electron densities. If the resonance condition is fulfilled (ωce/ωrf=1/2), the discharge efficiency is enhanced due to the MRSR effects, resulting in an increase in plasma density. Our numerical results demonstrate that this resonance effect is particularly efficient at low pressure and low electronegativity. However, in strongly electronegative discharges, the time it takes a typical resonant electron to return to the expanding sheath edge is found to be affected by drift and ambipolar electric fields in the plasma bulk, which cause a deviation from the resonance condition, resulting in a reduction of this type of resonance effect.