Both are completely equivalent in terms of behavior and compilers will likely emit identical machine code for both.
They don't even differ that much in terms of readability - both have the same amount of nesting. Compare this to case where no early return leads to deep nesting.