When Emacs started supporting variable-width fonts well, I tried coding with them for a while. It works fine. I went back to monospace not because I'd been more productive, individually, with it, but because I needed to see my code the way others would see it.
Human Factors and Typography for More Readable Programs https://www.amazon.com/-/he/Ronald-M-Baecker/dp/0201107457