Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
My apologies @amoeba. You are right. I have edited the answer to reflect the real discrepancy, which concern the default SS used by summary() when computing P-values.
I have since found the solution to this issue and have been meaning to post it here. @amoeba comment reminded me to do so. The solution is rather straightforward and I'm rather embarrassed by not having thought of it earlier. In any case, the post above has been edited for anyone downstream facing the same problem.