I think that, like anything else, being clear to your future self is most important. Sure, if you're writing some tight, critical loop, then go with the most performant code, but overall neatness matters. I happen to like ternary operators quite a bit but they can get a bit tricky and convoluted if you let them.