If developers read this, I suggest they think about adding more detailed cross-play settings.
Instead of just one setting, it should be broken down into two distinct choices: whether to enable cross-platform play, and whether to enable cross-input play.
This way, players with keyboard and mouse can be matched against those with controllers, or vice versa, depending on what they choose.
Additionally, the platforms should be recognized individually, so that Xbox and PC players can’t be matched together even when cross-play is enabled.