Personally, I don't really see much of a difference. Some 5 year olds are better at $x than "grandmothers". So wouldn't "to a 5 year old" be ageist as well?
Use some common sense. For how many values of $x that would be the subject of an interview question are 5 year olds going to be better than grandmothers?
Your missing the point though: There's a reason the "non-technical grandmother" is a stereotype. By using "common sense", it makes sense to use that stereotype.