As far as I understand, everything in python is an object or a reference.
For example: in
x = 1
When they say "everything is an object or a reference" they are referring specifically to data. So this naturally does not apply to statements. Of course, all expressions will result in data. For example
a == b is
<class 'bool'> because it is an expression.
There are some languages where
if is an expression but python is not one of them.