In a sense, yes and no.
Sans took me FAR more attempts to beat than Undyne the Undying. Sans took over 100 while Undyne took less than 30.
BUT
With sans, I can consistently beat him within 3 tries, even without any practice after months of not playing. I've memorized everything. It is no longer a challenge.
However, with Undyne, every time I fight her it takes me 10+ tries.
I don't really know why, but that seems to make Undyne harder, since I always take many tries, but as soon as you beat sans, it's easy.
Does that make sense?