If you are non-EU, ask your future employer to ask officially the authorities whether you are allowed to immigrate to German with Swiss work contract. If they have experience with it, they'll know, if they havn't, well... they should learn as good employers. Otherwise, not a problem as such, but it's hard to know exactly what the financial benefit will be.
It's different for everybody as the calculation of taxes will depend on your family situation. For me it's cheaper to rent in BS but buy in Germany for the same job.
Here the thread:
Tax comparison BS/LÖ
Some say it's worth looking into France when you have children or want a real house, but not in the first km behind the border, you have to go and look in the villages around.
Tax advisers are the only way to have exact numbers. A forum can only make a list of single cases that will match more or less your situation.