If a program is compiled to load a library, and that library is missing, the program will fail to run.
A library is only optional if the program is compiled to dynamically load it according to configuration settings, and is also written to gracefully handle its absence.
You can play around with the dep files, but be prepared for applications or deps with modified dep files to fail to run or be unstable.
Also, don't come here for support if you have problems after modifying dep files to try to eliminate what you think are unnecessary features.
We have no way to troubleshoot programs that have been modified.