Mendacious and lying have very similar meanings, but the two are not interchangeable. Mendacious is more formal and literary, suggesting a deception harmless enough to be considered somewhat bland.