Ternary operator

But it leads to higher coginitive load, higher learning costs and more bugs.

how something like this

return (response.isSuccessful()) ? response.body().string() : "fail"

leads to higher cognitive load, higher learning costs and more bugs?