Not doing a write when the disk is idle doesn't save anything even if that write turns out to be unnecessary.
Disk also might be in standby mode, which saves motor spin up and head load cycles too.
The goal is optimizing performance as seen by users. Long waits for disk flushes because the system wasted write opportunities is not good performance by any measure.
Modern storage hierarchy has become so convoluted precisely because of many conflicting goals: performance, efficiency, durability, cost, etc.