Generally its the managers responsibility to ensure they are working on what is important. That's literally their entire job. An employee capable of convincing themselves whatever they work on is important is a net benefit to the manager - they are more malleable and can be convinced to work on the important but "boring" parts.
An employee refusing to work on something because in their opinion its not worthwhile is a tough place for both the employee and the manager.
An employee refusing to work on something because in their opinion its not worthwhile is a tough place for both the employee and the manager.