How to connect vertices together while joining another vertex in its path?
The best option is to use Join. Select the two vertices that you want to connect and press J to connect them. This will automatically create vertices at any edges that the new edge crosses: