The difference between the two is that the trailing if in the first one is part of the list comprehension syntax, while the if-else is the conditional operator, not any part of the list comprehension syntax - as it is an expression which is permitted in that part of a list comprehension.
The syntax for the conditional operator is as follows:
x if condition1 else y
This returns the value of the expression that is evaluated, which is why it seems to "work" for your case, though it evaluates all of the time and returns always - which is the key difference between the two.
Meanwhile, for the list comprehension, it tests whether or not the condition applies, and does not add that in the new list created if the condition does not evaluate to true according to the Truth Value Testing procedure, not None nor anything else.
Compare the following (taking an example from PEP202):
a = [i if i % 2 == 0 else None for i in range(20)]
b = [i for i in range(20) if i % 2 == 0]
a would be
[0, None, 2, None, 4, None, 6, None, 8, None, 10, None, 12, None, 14, None, 16, None, 18, None]
while b would be
[0, 2, 4, 6, 8, 10, 12, 14, 16, 18]
which isn't the same at all, as no matter what the result of it is, it will still add it in if there is no if part of the list comprehension.