You misunderstood OP; there should not be one correct build to beat a given boss, there should be many possible viable builds, that all require different strategies and tactics because they have tangible trade-offs and don’t all work for different enemies or maps.
“Use a gun and dodge well” or “use the sword and dodge well” is removing that planning and adaptation towards your own AC’s requirements.