That's exactly what Firefox originally claimed was a stark difference compared to Chrome: "use us and you can finally be safe and not need to play cat and mouse anymore"
If you’re planning this, just use a fork of Firefox that does those things. Less setup and you don’t need to update that file whenever they change the domains used for telemetry.