MLB has the oddest tiebreaker for draft position. Where another sport might use head-to-head competition or some other mechanism based on this year, MLB uses the previous year's record to break a tie for this year.
So, in the off chance that Pittsburgh loses out and we win out and both finish 59-103, we'd get the top pick because we were god-awful, last year too! Of course, if MLB used head-to-head as the tiebreaker, we'd still get it because we lost the season series to the Pirates, 3-4.
In Major League Baseball, losing 100+ games, back-to-back, really does have its advantages.
