I had no issues at Geneva few weeks back when staying just for one night.
I do wonder if they get suspicious if going to EU for a very short time.
Geneva's not in the EU, although you can exit into the EU from there, but my experiences with French Switzerland match that of France, and German Switzerland with Germany as per the previous post (which I am in complete agreement for all the countries mentioned).
Basel is somewhere in between depending on whether you get a primarily French or German speaking officer
France - EGates, then stamp no questions
Germany - Normally a mini interrogation
Switzerland - Also pretty awful. Second worse to Sweden I would say. Chap in front of me was British and they wanted proof of the conference he was going to etc.
Sweden shouldn't be prioritising Swedish ID cards over EU/EEA/CH passports.
The point of Schengen is to remove systematic internal border checks.
I recall the Jon Worth blog detailing his long fight against internal border checks (mainly around France) but I think ultimately led nowhere.
Sweden has been "controlling" their Danish land/sea border since 2015 and it inconveniences citizens and residents too. Plenty of racial profiling including of citizens, just like I got racially profiled on a Scotland-NI ferry.