It doesn't matter in this case with only 2 computers if you are set on hub or switch.
A hub will send any incoming signal to all ports.
A switch will remember the mac of each machine and only sends the signal to the propper port. This reduces traffic and brodcast storms on a busy network, but if you are only using one computer on the internet at a time - It doesn't benefit you to upgrade to a switch.
If you get a router you can use both computers on the internet at the same time.
Inexpensive routers can be found in the $50-$75 range. You can spend a little more for extra features.
I picked one up on sale at an Office supply chain store for $39($59 and got another $20 back in a rebate).
Configuration is nil. I was running 2 machines on my Comcast cable connection within 10 minutes of opening the box.
I would just get a router and be done with it.
Otherwise I would go with the cheapest option.