It actually depends on a person and their priorities in a relationship. It doesn't matter for people who want to learn from an older partner or a younger partner and focus on similarities rather than on differences. However, for people who are looking for partners like them and don't think that differences can make them stronger, such relationships usually don't work.