Lets set some ground rules that should be obvious
1)The elephant is not standing still like a statue and neither would the sloth be standing still like a statue.
2)Lets assume no extreme outliers in weight so elephants average 7 tons and the sloth 6 tons.
3)just a reminder that the mammoth was the biggest contender for these sloths and did not mess with them
4)just a reminder that the sloths were hunted by smaller animals, so they may not be able to run at 20mph like a elephant, but they can absolutely swing that fast.
5)the sloth isnt required to stand up to attack everything, standing up is just an option for it unlike an elephant.
6)the sloth has hardened ribs and compressed inner organs due to being a herbivore
7)elephants arent immune to damage, their skin is just a inch thick and saggy which means stuff doesnt naturally dig into organs, however, elephants lack fur.
Lets start 3 different scenarios depending on 3 factors
Scenario 1, the sloth is on the elephants territory, the sloth has 1 foot long claws and is aware of the elephant, the elephant is aware of the sloth and the elephants tusks are 5 feet long. The elephant attempts to ram the sloth, the sloth is impaled, the elephant did not impale a vital, the sloth is now on the face of the elephant. The sloths reach and claws allow it to destroy the eyes, trunk, face, neck, knees, and shoulders of the elephant. The elephant cannot dismount the impaled sloth. The sloth hits a neck vital or topples it with a shoulder or knee swipe. The sloth wins this scenario with mild impalement causing internal bleeding.
Scenario 2, this ones similar to the abive scenario, however, the tusk breaks off, which is not unheard of, causing the impaled sloth to have more accessible attacks now that the elephant has lost a tusk. The elephant attempts to stomp on it, misses, and leaves open access to a gruesome gut or knee slash. The sloth wins here with impalement but less bleeding as the tusk wasnt removed.
Scenario 3, the elephants perfect flawless run. The elephant charges into the sloth, does not impale, and does not let the sloth get onto the top of the tusks, instead the elephant slams its head down, briefly exposing its neck, but shoving the sloth to the ground, and trampling it while dodging all retalitory gut swipes. The elephant wins via crushing with maybe 1 or 2 gashes near the gut and neck.
The sloth may be INJURED 2 out of 3 times, but the elephant is KILLED 2 out of 3 times.
Its a high diff match for the sloth, but you must remember, the elephants migrated away from the sloths.
Elephants are more for ramming, pushing, and shoving anyways, so impalments dont happen as much as a rhino, not to say it cant happen, but its less likely. Hust a reminder, the elephant is still hunted and attacked by wild animals to this day. The elephants combat attackers using pack tactics and a front facing sheild and tusk wall.
A stray elephant vs a sloth is high diff with the sloth in favor of winning. But 2 elephants vs 2 sloths, its in favor of the 2 elephants simply because pack tactics and front facing sheilds are op.
The only reason the front facing sheild tactic doesnt work on a single elephant is because it only has 1 head and 2 tusks, so every way it swings that head opens up opposite side room.