Any character can do that, unless you're playing with some Peach master.
I have been known to beat people senselessly with Yoshi. He can hold a lot of damage at a time, making him much more difficult to KO. He's also very fast, which gives him the upperhand against slow characters like Bowser or Ganondorf.