Yes I think it does count as lying. As long that it has an impact even if it was just on yourself then keeping it is still considered lying to yourself like the other person who asked you says.
Interesting point of view. Thank you, and my apologies for the lateness.