I am not comparing them.
Simply pointed to a flaw in your argument.
Just like Switzerland is a confederation, where every canton has own rules about many things, USA is having states, where every state has its own rules on many aspects of life.
And in both cases, there are some laws, that apply all over the country, they use same currency, but essentially Switzerland is a union of 26 countries with 4 official languages and CHF as currency and USA is a union of 50 countries with a 1 official language and USD as currency.
And if you want to take it further, to say that Europe is a bunch of countries, that have various laws, etc., well, it's not that different in the US.
Main difference is that US has 1 official language, and a huge community of people speaking Spanish, so essentially by covering these 2 languages you can cover most of the US, while in Europe you would need much more languages.
But that's all about it.
Just like in Europe, US has different regions at different economic development level.
And not only economic development.
Perhaps you should travel some time to US, open your mind and explore the country.