to me nesting the if statement seems faster... I suspect that the first "If" allows for an early exit, if the condition is false, while "and" checks wether both are true before comparing them
This is a very basic test. If my suspicion is correct, that would make nested "if" statements faster IF you expect more false values than true ones. Due to the added overhead of an if statement (+1.3 rtc, according to: https://scratch.mit.edu/projects/1030987979/ ) it would not be worth it if more values are true than false