In that case the definite article is better. This is because the "... to do it" qualification, and the general context of the sentence, make the opportunity and right into sufficiently definite and specific things.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.