Just to add to what @pe1chl wrote: there are a few Mikrotik product lines (Ethernet routers, Switches, Wireless for home and office, ...) and placement of individual models to one of these categories is somehow arbitrary. And placement in one of those categories does not say much about device's capabilities (basically: all devices running RouterOS can do all of the tasks) but rather about their capacity. So CRS devices are best suited to be switches (because they can switch traffic at wire speed which can be even higher than 10Gbps), RB951Ui-2HnD is actually from "Wireless for home and office" because it can route and has wireless interface (plus, having only 100Mbps ethernet ports, it can actually route wire speed in certain circumstances).
So when deciding about which particular model to get for your particular use case, check the "Test results" tab in official product page and compare those figures. There are many figures present and it's hard to figure out which is the relevant one. When trying to assess routing capacity for typical SOHO use (firewall enabled, a few ports forwarded, ...) many of us are looking at figure under "Ethernet test results" -> "Routing ... 25 ip filter rules" -> "512 byte [packets]". If interested in switching, then it'll be under "Switching results" ... or sometimes under "Ethernet test results" -> "Bridging none (fast path)" (depending on configuration and/or required functionality).