The correct option is D rigidity
Flexibility means willingness to change or compromise. The opposite of flexibility is rigidity or inability to be changed or adapted. Hence, Option D is correct. Among the rest of the options, complexity means the state or quality of being intricate or complicated, tensity means the state of being stretched tight, pliability means the quality of being easily bent. These options do not express this antonym, hence incorrect