A. Good question. I doubled checked this one in Gregg's Reference Manual, which says, "The object of the preposition 'of' should not ordinarily be in the possessive form, since the 'of' phrase as a whole expresses possession."
A better way to do this would be :
Bob will be David's rival in the competition. (This version also gets rid of the awkward repetition of competitor/competition.)