SDL2 and openGL3-4
That depends. Exactly what part of SDL you want to work "hand in hand" with OpenGL?
Am I wasting my time learning it or do they work hand in hand quite nicely?
SDL handles many things, context creation, input, sound, threading (I think networking too?), it has some 2D drawing facilities, etc.
SDL2 works just fine, just tell it what kind of context you want to create with a few calls to SDL_GL_SetAttribute. It doesn't handle the function pointers for the needed OpenGL functions though, so use GLEW or something similar for that to make your life easier.
As far as I know SDL2 is just a multi platform framework, intended to work with C code, to produce multimedia applications.
This core handles some aspects of application development like: Window Creation, Threads, Rendering, Input (keyboard, mouse, joystick)... There is some additional libraries (called Projects) that are hosted by libsdl.org site (libsdl.org/projects/) that provide other functions, like ImageLoading (SDLImage), Font loading (SDL_ttf) and even networking (SDLNet) but are not supported and does not belong to SDL2 core.
SDL2 is platform independent, so you can write you code using it and run on Linux, Mac and Windows... I don't know about Smart Phones and other platforms...
Talking about OpenGL: One of the main components of SDL is the rendering system (personal impression). So, you may create a 'renderer' object (its almost and object if you consider OOP) that supports OpenGL context and use your OpenGL code to render your scene to a 'buffer' and use SDL2 renderer to draw that buffer on your screen... simple as that....
The point is: You use SDL2 to render base structure (input, sounds, rendering, etc etc) and use OpenGL to create the content for the rendering mechanism to display... this way, all the OpenGL code you will learn/create is able to be reused in other projects, even if you decide to do not use SDL2.... and btw, its pretty simple to make SDL and OpenGL to work together....
So, in my opinion, its not a waste of time to spend some time learning it... hope it helps.