Instead of judging meaning alone, test each option as a fixed phrase native speakers actually use.
"To the best of his capacity" is a common idiom describing someone giving full effort within their ability.
"To the best of his quality", "strength" and "power" are all phrases that sound unnatural or are rarely used in standard English.
On the first blank, "discharge" is the standard formal verb paired with "duties" in official and legal contexts, matching the judge in the sentence.
"Fulfill", "execute" and "perform" duties are all grammatically fine, but they lose to "discharge" once paired with the correct second blank, "capacity".
Matching both blanks to natural collocations gives option 2, discharge ... capacity.