Digital pots are the band aids of inexperienced designers. In most cases I have seen them used it was a bodged job.
You can't get digital pots with really high resolution. 1024 is the most many manufacturers offer, if at all. 256 is common.
Digital pots have horrible tolerances, think 20%.
Digital pots can't be adjusted down to zero.
Digital pot wiper resistance depends somewhat on power supply voltage.