That’s what rebounds are for, and if you aren’t up front about them being a rebound, you’re an asshole.
But the healthiest thing to do is to be single between relationships. For a good long while. Until you’re actually happy being single. That’s the only headspace you can be in to find a partner who will be good for you.