That's correct. This isn't a bug in the sense that the program won't run. The problem is that the code doesn't do what we want it to do: return the smallest number under every possible condition.
Consider a case where our intent is different: let's say we decide that if x is not less than y, then we don't care what z is. In that case, this code would be perfectly fine.
no subject
Consider a case where our intent is different: let's say we decide that if x is not less than y, then we don't care what z is. In that case, this code would be perfectly fine.