Best elixir idiom for "var = this || that"?

You might search for first_or_create like in this post

But beware of race condition.