I also have a ditto with ivs in HP/Defense/Speed.
If I swap this ditto with the defense/special defense one, will I have a better chance of getting all 5 iv's maxed?
Slightly better. The more stats that overlap between parents, the better the chance of that stat being perfect. Two overlapped stats are better than one.