The unitary group U(N)
has the same cohomology ring
(and dimension) as the product of spheres
S^1 x S^3 x ... S^{2N-1}
but the two spaces have different
homotopy types as soon as N>2. [see Hatcher, Algebraic Topology, p. 434]