It's not about what performs better it's about finding the right tool for a specific action
.
Getting results from a SELECT implies a very custom feature and this is usually implemented in javascript or from an external module.
If you can do this from register.conf then use it, otherwise you will need a piece of scripting. The power of Yate lies in the fact that you can mix existing modules and custom scripting.