The SWAN view of dense gas in the Whirlpool. A cloud-scale comparison of N2H+, HCO+, HNC, and HCN emission in M51 | Synapse