Mario can chain grab and combo him to death. His fireballs can stop his ground movement a bit and force Yoshi to jump sometimes since Yoshi has good wave dashing and moonwalking to approach from the ground. Mario's dair has real good priority and is a safe way of approaching Yoshi from the air and it can also lead to a chain grab or combo. Mario's f-smash has good range to hit Yoshi when he's approaching from the ground or even from the air with a jump canceled attack.
Dr. Mario is just about the same except worse in certain ways. Since he's more powerful, he can perform a jab to d-smash easier than Mario as Doc's jab will lift Yoshi up higher. Of course Doc's d-smash also has more knockback. So it could be a primary tactic against Yoshi to get some damage or even kill him. Doc's dash attack is useful for this matchup since Yoshi can't do anything outta shield if Doc hits Yoshi's shield. It can pop him up for an attack, chain grab or combo. Doc's pills are even gayer against Yoshi than Mario's fireballs because he can perform something I call, "The Akuma Approach" or just Akuma lol. Doc can release two pills while he walks right behind them at basically the same speed while they bounce forward. So not only is it a safe way of approaching Yoshi, but it can also hinder Yoshi's ground movement and even air sometimes since the pills bounce high, unlike Mario's fireballs. Doc can also chain grab. Doc can d-throw to fair or d-throw to combo to fair for a finisher.
Both Mario and Dr. Mario can cape Yoshi's eggs and even get some quick damage if their capes hit Yoshi, especially Doc's, which starts at 12%. Both Marios can d-throw to f-smash for a finisher. Both Marios can approach with a short hop nair but Doc's nair is way stronger if held out with a full hop. Both Marios can give Yoshi the PRESSHHAA since Yoshi
Yoshi doesn't get completely obliterated. Of course he has combos and jump cancel tricks and stuff. If Yoshi hits Mario or Doc with a d-smash and they have a considerable amount of damage and they're nearby the ledge, they can not make it if the Yoshi grabs ledge since their recoveries are not amazing, especially since Doc's is a bit worse than Mario's. Yoshi can also hit their up-B with a d-tilt and kill them if timed correctly.
But yeah, I believe the matchup is Mario/Doc >> Yoshi.
I hope this helps