A 088 Yes.
"Directly toward your opponent" for Charge movement is defined as follows:In the diagram below, the GREEN character can Charge the RED character on the BLACK path:You must have a clear path toward the opponent, and nothing can hinder your movement (such as difficult terrain or obstacles). Here’s what it means to have a clear path. First, you must move to the closest space from which you can attack the opponent.
Because of the way D&D counts diagonals, the last (topmost) black space is at the same distance from the starting position as the space directly below the RED character: either of these two endpoints would satisfy the "closest space from which you can attack the opponent" requirement. By choosing the straight vertical path the GREEN character can continue in a straight line with Ride-By Attack.