The thick lubricant will actually attract dust and grime, clogging your hinges rather than oiling them. You can avoid this by removing the oil with hot water and soap.
Silicone lubricants are known for their smoothness and water-repellent properties, which create a sleek barrier around the hinge that doesn’t attract dust and dirt.
WD-40 may not be the best solution for hinges, but the lubricant still has plenty of uses and will help protect metals from rust and displace moisture.