With the diode you don't have the resistance in with the trace, but just pulling up to Vcc. With the potential divider you have two resistors - one pulling down to ground, and one in series with the signal. So, with the diode, there is less filtering effect.