There is nothing special about the knees. If you want to defend leg shots, I do not think the choice between knees and sprawls makes sense.
The wrestling view of defense has multiple layers:
Your defense starts with the hands. If you can defend with those, you do not need the later layers. Likewise if you can defend with the elbows, ...