This is a limitation in Mastodon, because it doesnt expect that there are two accounts with the same name on one instance. With Lemmy that is possible, because users and communities are in seperate namespaces. So in this case, Mastodon seems to prefer the user, even though the community is listed first for webfinger. You can try searching for the community url (https://lemmy.ml/c/openscience). If that doesnt help, you can open an issue.
@nutomic I just tried searching for "https://lemmy.ml/c/openscience" on mastodon.social and got no results.
Then it seems like a bug in Mastodon.
I think Mastodon gets confused by the fact there is a community /c/openscience and a user /u/openscience on lemmy.ml