Yeah, that’s just as bad. Declawing is still cutting out the first digit of the foot, no matter what animal we’re talking about. It’s mutilating an animal and subjecting it to a long recovery and likely chronic pain for your own convenience. It’s cruel, and it should be illegal.
And dogs don’t even reach up and scratch things! If they’re messing up your floor, teach them to wear little booties. There are solutions other than surgical removal of part of your pet’s skeleton.