Two definitions of universal hash functions
The two definitions are not equivalent.  The second definition does not imply the first.  You can take $\mathcal{H}$ to be the collection of all functions $h$ such that $h(1) = 1$.