Let me add this quote :
EB said:
All uploaders should make sure they actually compare the images before deciding not to upload, though. "Double uploads" are good when the image here has noticeable compression artifacts or there are other appreciable differences.
I can see two problems :
1/ The upload of same quality but different filesize pictures :
The problem is not really one with a lossly compression (jpg), because the quality will be changed, the best one being the parent.
With a lossless compression (png) , the problem is that the md5 of the two image will be different, so the uploader will not know that he post a duplicate.
Must we upload the original picture if the same from twitter already is ? For me it's a non-sense : it will create the duplicate that we want to prevent.
From now I will assume we speak about a png.
2/ The determination of the parent with two images already uploaded :
Between the image from twitter and the others, which one is the parent ? The answer was already given : the one with the original filesize, not the one from twitter.
Besides, it does not mean that if the one from twitter is the only one in danbooru, the original must be uploaded.