Ahlfors-Beurling conformal invariant and relative capacity of compact sets