I can not comment now (write restriction).
But I think that you really need to do this instead, according to your needs:
imageB.paste(imageA, (0, 0), imageA)
Basically, that is, make B the background image to get the desired results, because this is what I see in D.
EDIT: Looking around more, I found this: fooobar.com/questions/65355 / ...
I think you should definitely use the alpha_composite method, since the paste does not work properly for background images with transparency.
source share