Control Flow Large Power - What's the DIfference

For question 1 Large Power it asks you to use an if statement to return either true or false - I missed this and submitted the below code which was marked as correct without using an if statement

def large_power(base, exponent):
  return base ** exponent > 5000

The suggested solution is

def large_power(base, exponent):
  if base ** exponent > 5000:
    return True
    return False

Is there any functional difference between the two? They both return the correct answers - why would we use an if statement for this problem?

Functionally the returns are the same. The difference is that the first example leverages the truthiness of the expression.