2342: fix logical error in as_coefficient
2342: fix logical error in as_coefficient

    Having the same number of Add args is only a valid
    test for success if both terms are Adds. The whole
    routine was simplified to rely on extract_multiplicatively.

    doctest modified to test behavior

sampadsaha5/sympy,wyom/sympy,saurabhjn76/sympy,saurabhjn76/sympy,Designist/sympy,postvakje/sympy,mcdaniel67/sympy,drufat/sympy,AunShiLord/sympy,liangjiaxing/sympy,ChristinaZografou/sympy,jerli/sympy,atsao72/sympy,debugger22/sympy,rahuldan/sympy,lindsayad/sympy,chaffra/sympy,pandeyadarsh/sympy,sahilshekhawat/sympy,grevutiu-gabriel/sympy,abhiii5459/sympy,aktech/sympy,beni55/sympy,Vishluck/sympy,jbbskinny/sympy,yukoba/sympy,chaffra/sympy,abhiii5459/sympy,Shaswat27/sympy,debugger22/sympy,ahhda/sympy,kumarkrishna/sympy,grevutiu-gabriel/sympy,Titan-C/sympy,jamesblunt/sympy,cccfran/sympy,pbrady/sympy,iamutkarshtiwari/sympy,sampadsaha5/sympy,mcdaniel67/sympy,mcdaniel67/sympy,atreyv/sympy,vipulroxx/sympy,VaibhavAgarwalVA/sympy,chaffra/sympy,hargup/sympy,dqnykamp/sympy,atreyv/sympy,AkademieOlympia/sympy,garvitr/sympy,mafiya69/sympy,MridulS/sympy,atsao72/sympy,liangjiaxing/sympy,farhaanbukhsh/sympy,jamesblunt/sympy,MridulS/sympy,pbrady/sympy,Mitchkoens/sympy,amitjamadagni/sympy,pandeyadarsh/sympy,souravsingh/sympy,skidzo/sympy,emon10005/sympy,kaichogami/sympy,maniteja123/sympy,jbbskinny/sympy,garvitr/sympy,drufat/sympy,wanglongqi/sympy,diofant/diofant,asm666/sympy,meghana1995/sympy,dqnykamp/sympy,sahmed95/sympy,wyom/sympy,moble/sympy,hrashk/sympy,VaibhavAgarwalVA/sympy,oliverlee/sympy,jaimahajan1997/sympy,yukoba/sympy,bukzor/sympy,lidavidm/sympy,ChristinaZografou/sympy,drufat/sympy,cccfran/sympy,pbrady/sympy,Arafatk/sympy,bukzor/sympy,Shaswat27/sympy,Vishluck/sympy,kaichogami/sympy,Mitchkoens/sympy,Shaswat27/sympy,shikil/sympy,sahilshekhawat/sympy,oliverlee/sympy,souravsingh/sympy,beni55/sympy,toolforger/sympy,Curious72/sympy,vipulroxx/sympy,AunShiLord/sympy,ahhda/sympy,beni55/sympy,aktech/sympy,postvakje/sympy,AunShiLord/sympy,wanglongqi/sympy,Davidjohnwilson/sympy,Davidjohnwilson/sympy,souravsingh/sympy,mafiya69/sympy,asm666/sympy,sunny94/temp,kmacinnis/sympy,moble/sympy,sahmed95/sympy,AkademieOlympia/sympy,hargup/sympy,ga7g08/sympy,mafiya69/sympy,Sumith1896/sympy,sahilshekhawat/sympy,Titan-C/sympy,abloomston/sympy,yashsharan/sympy,jbbskinny/sympy,emon10005/sympy,cccfran/sympy,Gadal/sympy,sahmed95/sympy,Davidjohnwilson/sympy,jaimahajan1997/sympy,Curious72/sympy,shipci/sympy,abloomston/sympy,minrk/sympy,ChristinaZografou/sympy,atsao72/sympy,shikil/sympy,hargup/sympy,yashsharan/sympy,pandeyadarsh/sympy,saurabhjn76/sympy,toolforger/sympy,ga7g08/sympy,sunny94/temp,asm666/sympy,meghana1995/sympy,kumarkrishna/sympy,kaushik94/sympy,jamesblunt/sympy,aktech/sympy,yukoba/sympy,bukzor/sympy,MechCoder/sympy,madan96/sympy,meghana1995/sympy,toolforger/sympy,abhiii5459/sympy,iamutkarshtiwari/sympy,shipci/sympy,Gadal/sympy,Curious72/sympy,rahuldan/sympy,atreyv/sympy,AkademieOlympia/sympy,debugger22/sympy,kevalds51/sympy,maniteja123/sympy,skidzo/sympy,iamutkarshtiwari/sympy,Mitchkoens/sympy,cswiercz/sympy,sunny94/temp,dqnykamp/sympy,VaibhavAgarwalVA/sympy,Sumith1896/sympy,MechCoder/sympy,lindsayad/sympy,wanglongqi/sympy,lidavidm/sympy,cswiercz/sympy,maniteja123/sympy,kaichogami/sympy,Sumith1896/sympy,ga7g08/sympy,kmacinnis/sympy,Designist/sympy,Designist/sympy,liangjiaxing/sympy,MechCoder/sympy,hrashk/sympy,minrk/sympy,postvakje/sympy,kevalds51/sympy,amitjamadagni/sympy,kmacinnis/sympy,Gadal/sympy,moble/sympy,kaushik94/sympy,yashsharan/sympy,jaimahajan1997/sympy,farhaanbukhsh/sympy,Vishluck/sympy,flacjacket/sympy,hrashk/sympy,ahhda/sympy,emon10005/sympy,shikil/sympy,garvitr/sympy,kaushik94/sympy,wyom/sympy,Arafatk/sympy,jerli/sympy,kevalds51/sympy,rahuldan/sympy,abloomston/sympy,jerli/sympy,srjoglekar246/sympy,sampadsaha5/sympy,cswiercz/sympy,madan96/sympy,skirpichev/omg,kumarkrishna/sympy,lindsayad/sympy,oliverlee/sympy,farhaanbukhsh/sympy,Titan-C/sympy,shipci/sympy,lidavidm/sympy,madan96/sympy,skidzo/sympy,vipulroxx/sympy,MridulS/sympy,Arafatk/sympy,grevutiu-gabriel/sympy