A drug dealer from Bradford jailed for more than five years "had no choice but to plead guilty" due to the "overwhelming evidence" against him.