They perform identically, so use the first one if you need to choose between the two.
Since you're really just creating a mapping between two sets, using a dictionary would be a better approach. It's faster and arguably more readable:
mapping = {
'domain': 'domain',
'db_user': 'username',
}
key = mapping.get(obj_type, 'name')